On Sun, Oct 02, 2011 at 01:28:37PM +0200, Alexander Graf wrote: > >> Good point. Though this is really a virtio specific issue since > >> other devices have explicit endianness (not guest dependent). > > > > Hmm, not entirely virtio specific, some devices use stX macros to do the > > conversion. E.g. stw_be_phys and stl_le_phys are used in several > > places. > > Yes, explicit endianness. Virtio is the only device type we support in QEMU > that changes its endianness depending on the guest CPU. All other devices are > independent of the guest CPU we're targeting. > > > Alex
True I think, for pci devices. And virtio bypasses the iommu anyway, so we don't need to worry about it. But the point is that it makes sense to support endian-ness handling in the core. -- MST