From: Avi Kivity Date: Tue, 30 Oct 2012 11:47:49 +0000 (+0200) Subject: vfio: abort if an emulated iommu is used X-Git-Tag: v1.6.0-rc0~186^2~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=06d985f5d844d07d31b4dada20f4ff6cf0d6ff4a;p=qemu-xen-unstable.git vfio: abort if an emulated iommu is used vfio doesn't support guest iommus yet, indicate it to the user by gently depositing a core on their disk. Reviewed-by: Peter Maydell Signed-off-by: Avi Kivity Signed-off-by: Paolo Bonzini --- diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index c89676b3ff..52fb03601d 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -1939,6 +1939,8 @@ static void vfio_listener_region_add(MemoryListener *listener, void *vaddr; int ret; + assert(!memory_region_is_iommu(section->mr)); + if (vfio_listener_skipped_section(section)) { DPRINTF("SKIPPING region_add %"HWADDR_PRIx" - %"PRIx64"\n", section->offset_within_address_space,