[PATCH] vfio: Fix endianness handling for emulated BARs

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Jun 25 07:46:14 EST 2014


On Tue, 2014-06-24 at 12:41 +0200, Alexander Graf wrote:
> Is there actually any difference in generated code with this patch 
> applied and without? I would hope that iowrite..() is inlined and 
> cancels out the cpu_to_le..() calls that are also inlined?

No, the former uses byteswapping asm, the compiler can't "cancel" it
out, but the overhead of the additional byteswap might not be
measurable.

Cheers,
Ben.




More information about the Linuxppc-dev mailing list