Re: [Qemu-devel] [PATCH qemu v8 1/2] memory/iommu: QOM'fy IOMMU MemoryRegion

2017-06-15 Thread David Gibson
On Wed, Jun 14, 2017 at 04:36:06PM +1000, Alexey Kardashevskiy wrote: > This defines new QOM object - IOMMUMemoryRegion - with MemoryRegion > as a parent. > > This moves IOMMU-related fields from MR to IOMMU MR. However to avoid > dymanic QOM casting in fast path (address_space_translate, etc), >

[Qemu-devel] [PATCH qemu v8 1/2] memory/iommu: QOM'fy IOMMU MemoryRegion

2017-06-13 Thread Alexey Kardashevskiy
This defines new QOM object - IOMMUMemoryRegion - with MemoryRegion as a parent. This moves IOMMU-related fields from MR to IOMMU MR. However to avoid dymanic QOM casting in fast path (address_space_translate, etc), this adds an @is_iommu boolean flag to MR and provides new helper to do simple cas