On 19/01/2015 13:53, Peter Maydell wrote: > > Heh, not sure I would have provided such a comprehensive answer. :) > > ...so now I have a question: what semantics does virtio expect > for its virtio_ld*/st*_phys accessors if QEMU is emulating a > CPU with virtualization support? Is the assumption just that > the guest that's using virtio has a 1:1 mapping of what it > thinks are physical addresses to real guest physical addresses?
Right now, the semantics are "PPC uses DMA addresses, everything else uses physical addresses". However, this could be changed since x86 IOMMU support is still experimental, and without an IOMMU DMA addresses _are_ physical addresses. Paolo