From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTAIx-00004w-76 for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTAIq-0003xo-MZ for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:48:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTAIq-0003xd-FS for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:48:16 -0400 From: Avi Kivity Date: Tue, 30 Oct 2012 13:47:49 +0200 Message-Id: <1351597670-23031-7-git-send-email-avi@redhat.com> In-Reply-To: <1351597670-23031-1-git-send-email-avi@redhat.com> References: <1351597670-23031-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH v2 6/7] vfio: abort if an emulated iommu is used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Alexander Graf , Blue Swirl , Alex Williamson , Anthony Liguori vfio doesn't support guest iommus yet, indicate it to the user by gently depositing a core on their disk. Signed-off-by: Avi Kivity --- hw/vfio_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index 0473ae8..bd7a075 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -943,6 +943,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("vfio: SKIPPING region_add %"HWADDR_PRIx" - %"PRIx64"\n", section->offset_within_address_space, -- 1.7.12