From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMInf-0007a7-VE for qemu-devel@nongnu.org; Thu, 11 Oct 2012 09:27:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMInV-0008VB-7y for qemu-devel@nongnu.org; Thu, 11 Oct 2012 09:27:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMInV-0008Ug-0Q for qemu-devel@nongnu.org; Thu, 11 Oct 2012 09:27:33 -0400 From: Avi Kivity Date: Thu, 11 Oct 2012 15:27:03 +0200 Message-Id: <1349962023-560-8-git-send-email-avi@redhat.com> In-Reply-To: <1349962023-560-1-git-send-email-avi@redhat.com> References: <1349962023-560-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [RFC v1 7/7] vhost: abort if an emulated iommu is used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Blue Swirl , Anthony Liguori , "Michael S. Tsirkin" , Alex Williamson , liu ping fan , Paolo Bonzini vhost 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/vhost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vhost.c b/hw/vhost.c index 0b4ac3f..cd5d9f5 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -451,6 +451,8 @@ static void vhost_region_add(MemoryListener *listener, struct vhost_dev *dev = container_of(listener, struct vhost_dev, memory_listener); + assert(!memory_region_is_iommu(section.mr)); + if (!vhost_section(section)) { return; } -- 1.7.12