[Qemu-devel] [PATCH] Always swap endianness in DBDMA

2009-12-22 Thread Alexander Graf
When we get an MMIO request, we always get variables in host endianness. The only time we need to actually reverse byte order is when we read bytes from guest memory. Apparently the DBDMA implementation is different there. A lot of the logic in there depends on values being big endian. Now, qemu d

[Qemu-devel] [PATCH] Always swap endianness in DBDMA

2009-12-22 Thread Alexander Graf
When we get an MMIO request, we always get variables in host endianness. The only time we need to actually reverse byte order is when we read bytes from guest memory. Apparently the DBDMA implementation is different there. A lot of the logic in there depends on values being big endian. Now, qemu d