Nikunj A Dadhania 75bd0c7253 vfio: make rom read endian sensitive
All memory regions used by VFIO are LITTLE_ENDIAN and they
already take care of endiannes when accessing real device BARs
except ROM - it was broken on BE hosts.

This fixes endiannes for ROM BARs the same way as it is done
for other BARs.

This has been tested on PPC64 BE/LE host/guest in all possible
combinations including TCG.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
[aik: added commit log]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2014-09-22 15:27:43 -06:00
..
2013-11-05 17:47:29 +01:00
2013-11-05 17:47:30 +01:00
2014-06-30 21:13:30 +02:00
2014-05-24 19:43:52 +02:00
2013-07-29 21:06:59 +02:00
2014-06-23 11:12:28 -04:00
2014-09-22 15:27:43 -06:00