On 20 July 2018 at 09:36, Tiwei Bie <tiwei....@intel.com> wrote: > Check region type first before casting the memory region > to IOMMUMemoryRegion. Otherwise QEMU will abort with below > error message when casting non-IOMMU memory region: > > vhost_iommu_region_add: Object 0x561f28bce4f0 is not an > instance of type qemu:iommu-memory-region > > Fixes: cb1efcf462a2 ("iommu: Add IOMMU index argument to notifier APIs") > Cc: Peter Maydell <peter.mayd...@linaro.org> > > Signed-off-by: Tiwei Bie <tiwei....@intel.com> > ---
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM