Re: [Qemu-devel] [PULL 2/2] vfio: make rom read endian sensitive

2014-09-23 Thread David Gibson
On Tue, Sep 23, 2014 at 11:14:57AM -0600, Alex Williamson wrote: > From: Nikunj A Dadhania > > 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 BA

[Qemu-devel] [PULL 2/2] vfio: make rom read endian sensitive

2014-09-23 Thread Alex Williamson
From: Nikunj A Dadhania 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