On Tue, Jul 11, 2017 at 01:56:20PM +1000, Alexey Kardashevskiy wrote: > This finishes QOM'fication of IOMMUMemoryRegion by introducing > a IOMMUMemoryRegionClass. This also provides a fastpath analog for > IOMMU_MEMORY_REGION_GET_CLASS(). > > This makes IOMMUMemoryRegion an abstract class. > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson with the exception of one miniscule nit: [snip] > +/** > + * memory_region_get_iommu_class_nocheck: returns iommu memory region class > + * if an iommu or NULL if not > + * > + * Returns pointer to IOMMUMemoryRegioniClass if a memory region is an iommu, Typo ^ -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson