]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vfio-pci: Fix endian issues in vfio_pci_size_rom()
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 4 Oct 2013 18:50:51 +0000 (12:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 4 Oct 2013 18:50:51 +0000 (12:50 -0600)
commitb1c50c5f248805be747e96e89efbe784ee99f764
treec154ea54ab178690e7953955577eb6be699e5239
parent64fa25a0efcadda6e8197e8ea578f6117d01bb4b
vfio-pci: Fix endian issues in vfio_pci_size_rom()

VFIO is always little endian so do byte swapping of our mask on the
way in and byte swapping of the size on the way out.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/misc/vfio.c