Re: [Qemu-devel] [PATCH 11/21] memory: iommu support

2013-05-31 Thread Richard Henderson
On 05/30/2013 02:16 PM, Paolo Bonzini wrote: > struct MemoryRegion { > /* All fields are private - violators will be prosecuted */ > const MemoryRegionOps *ops; > +const MemoryRegionIOMMUOps *iommu_ops; > void *opaque; > MemoryRegion *parent; ... > +void memory_region_init_

[Qemu-devel] [PATCH 11/21] memory: iommu support

2013-05-30 Thread Paolo Bonzini
From: Avi Kivity Add a new memory region type that translates addresses it is given, then forwards them to a target address space. This is similar to an alias, except that the mapping is more flexible than a linear translation and trucation, and also less efficient since the translation happens