From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAVsk-0000SD-Td for qemu-devel@nongnu.org; Wed, 08 Jun 2016 01:18:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAVsf-0000vT-Uf for qemu-devel@nongnu.org; Wed, 08 Jun 2016 01:18:22 -0400 Received: from mout.web.de ([217.72.192.78]:58782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAVsf-0000v0-L1 for qemu-devel@nongnu.org; Wed, 08 Jun 2016 01:18:17 -0400 References: <1463912514-12658-1-git-send-email-davidkiarie4@gmail.com> <1463912514-12658-2-git-send-email-davidkiarie4@gmail.com> <20160607143650.57f316d9@ul30vt.home> From: Jan Kiszka Message-ID: <5757AA8E.3050306@web.de> Date: Wed, 8 Jun 2016 07:18:06 +0200 MIME-Version: 1.0 In-Reply-To: <20160607143650.57f316d9@ul30vt.home> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IDshhu8TJajkQFH0XT9uuuljApnQ3NHea" 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: Alex Williamson , David Kiarie Cc: qemu-devel@nongnu.org, mst@redhat.com, peterx@redhat.com, valentine.sinitsyn@gmail.com, marcel@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IDshhu8TJajkQFH0XT9uuuljApnQ3NHea From: Jan Kiszka To: Alex Williamson , David Kiarie Cc: qemu-devel@nongnu.org, mst@redhat.com, peterx@redhat.com, valentine.sinitsyn@gmail.com, marcel@redhat.com Message-ID: <5757AA8E.3050306@web.de> Subject: Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU References: <1463912514-12658-1-git-send-email-davidkiarie4@gmail.com> <1463912514-12658-2-git-send-email-davidkiarie4@gmail.com> <20160607143650.57f316d9@ul30vt.home> In-Reply-To: <20160607143650.57f316d9@ul30vt.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-06-07 22:36, Alex Williamson wrote: > On Sun, 22 May 2016 13:21:51 +0300 > David Kiarie wrote: >=20 >> 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 >=20 > 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, One after the other: correct emulation of all key features is the primary goal, adding support for assigned devices a bonus. However, it's not a simple one as we will probably need shadow page tables. So GSoC is likely not long enough for this. Jan --IDshhu8TJajkQFH0XT9uuuljApnQ3NHea Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAldXqo4ACgkQitSsb3rl5xTGJgCg78F6OEncwQh3U6ip3TclWY0z S+UAoM6aW+pidOmlab73OCfmRF+efmfO =43d+ -----END PGP SIGNATURE----- --IDshhu8TJajkQFH0XT9uuuljApnQ3NHea--