From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiMbS-0007Ao-QY for qemu-devel@nongnu.org; Sun, 26 Oct 2014 08:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiMbL-0003VF-Al for qemu-devel@nongnu.org; Sun, 26 Oct 2014 08:07:22 -0400 Message-ID: <544CE3D7.4060003@web.de> Date: Sun, 26 Oct 2014 13:06:47 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <1413844443-28894-1-git-send-email-knut.omang@oracle.com> <1413844443-28894-3-git-send-email-knut.omang@oracle.com> In-Reply-To: <1413844443-28894-3-git-send-email-knut.omang@oracle.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4il0Spcm6X5v67ba75FeUJl7U66x9kCKS" Subject: Re: [Qemu-devel] [PATCH 2/2] intel_iommu: Add support for translation for devices behind bridges. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Knut Omang , qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Michael Tokarev , "Michael S. Tsirkin" , Mark Cave-Ayland , Alexander Graf , Markus Armbruster , =?ISO-8859-15?Q?Andreas_F=E4rber?= , =?ISO-8859-15?Q?Herv=E9_Poussineau?= , Anthony Liguori , Stefan Weil , qemu-ppc@nongnu.org, Richard Henderson This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4il0Spcm6X5v67ba75FeUJl7U66x9kCKS Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 2014-10-21 00:34, Knut Omang wrote: > @@ -65,11 +66,12 @@ struct VTDContextCacheEntry { > }; > =20 > struct VTDAddressSpace { > - uint8_t bus_num; > + PCIDevice *dev; This change is not helpful for clean handling of non-PCI devices (i.e. platform device interrupt remapping =3D> you had to pull Q35_PSEUDO_BUS_PLATFORM into intel_iommu, which is violating the layering). Please leave bus_num in place - or convert to a 16-bit SID. > uint8_t devfn; > AddressSpace as; > MemoryRegion iommu; > IntelIOMMUState *iommu_state; > + QLIST_ENTRY(VTDAddressSpace) iommu_next; /* For traversal by the i= ommu */ > VTDContextCacheEntry context_cache_entry; > }; > =20 Jan --4il0Spcm6X5v67ba75FeUJl7U66x9kCKS 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.0.22 (GNU/Linux) iEYEARECAAYFAlRM49cACgkQitSsb3rl5xTOqQCdEl/T2thT8pXWH2kN+D2Nhphl PkkAoIu1WfrhIUqxHF3yYXsUMiePJ8HD =O759 -----END PGP SIGNATURE----- --4il0Spcm6X5v67ba75FeUJl7U66x9kCKS--