summary refs log tree commit diff stats
path: root/hw/arm/omap2.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-06-30 09:52:58 -0600
committerAlex Williamson <alex.williamson@redhat.com>2014-06-30 09:52:58 -0600
commitc40708176a6b52b73bec14796b7c71b882ceb102 (patch)
tree120bd91067292119d4dabd620709a31c3092647d /hw/arm/omap2.c
parentf4d45d47826377722700894dbf7f47444527a9d2 (diff)
downloadfocaccia-qemu-c40708176a6b52b73bec14796b7c71b882ceb102.tar.gz
focaccia-qemu-c40708176a6b52b73bec14796b7c71b882ceb102.zip
vfio: Make BARs native endian
Slow BAR access path is used when VFIO fails to mmap() BAR.
Since this is just a transport between the guest and a device, there is
no need to do endianness swapping.

This changes BARs to use native endianness. Since non-ROM BARs were
doing byte swapping, we need to remove it so does the patch.
As the result, this eliminates cancelling byte swaps and there is
no change in behavior for non-ROM BARs.

ROM BARs were declared little endian too but byte swapping was not
implemented for them so they never actually worked on big endian systems
as there was no cancelling byte swap. This fixes endiannes for ROM BARs
by declaring them native endian and only fixing access sizes as it is
done for non-ROM BARs.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/arm/omap2.c')
0 files changed, 0 insertions, 0 deletions