From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bANkC-0000J7-SF for qemu-devel@nongnu.org; Tue, 07 Jun 2016 16:37:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bANk7-0007k5-TR for qemu-devel@nongnu.org; Tue, 07 Jun 2016 16:36:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bANk7-0007ju-NC for qemu-devel@nongnu.org; Tue, 07 Jun 2016 16:36:55 -0400 Date: Tue, 7 Jun 2016 14:36:50 -0600 From: Alex Williamson Message-ID: <20160607143650.57f316d9@ul30vt.home> In-Reply-To: <1463912514-12658-2-git-send-email-davidkiarie4@gmail.com> References: <1463912514-12658-1-git-send-email-davidkiarie4@gmail.com> <1463912514-12658-2-git-send-email-davidkiarie4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Kiarie Cc: qemu-devel@nongnu.org, mst@redhat.com, peterx@redhat.com, valentine.sinitsyn@gmail.com, jan.kiszka@web.de, marcel@redhat.com On Sun, 22 May 2016 13:21:51 +0300 David Kiarie wrote: > Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU > The IOMMU does basic translation, error checking and has a > minimal IOTLB implementation. This IOMMU bypassed the need > for target aborts by responding with IOMMU_NONE access rights > and exempts the region 0xfee00000-0xfeefffff from translation > as it is the q35 interrupt region. We also advertise features > that are not yet implemented to please the Linux IOMMU driver. > > IOTLB aims at implementing commands on real IOMMUs which is > essential for debugging and may not offer any performance > benefits > > Signed-off-by: David Kiarie > --- > hw/i386/Makefile.objs | 1 + > hw/i386/amd_iommu.c | 1401 +++++++++++++++++++++++++++++++++++++++++++++++++ > hw/i386/amd_iommu.h | 340 ++++++++++++ > include/hw/pci/pci.h | 2 + > 4 files changed, 1744 insertions(+) > create mode 100644 hw/i386/amd_iommu.c > create mode 100644 hw/i386/amd_iommu.h I don't see any callouts to memory_region_notify_iommu() here, so this won't yet support assigned devices. Do you have any plans to add that support? Thanks, Alex