From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkpJn-00024n-Ia for qemu-devel@nongnu.org; Wed, 22 Apr 2015 03:43:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkpJl-000732-Tp for qemu-devel@nongnu.org; Wed, 22 Apr 2015 03:43:35 -0400 Date: Wed, 22 Apr 2015 16:47:00 +1000 From: David Gibson Message-ID: <20150422064659.GQ31815@voom.redhat.com> References: <1428679484-15451-1-git-send-email-aik@ozlabs.ru> <1428679484-15451-13-git-send-email-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YzdYn+D7cUqe+VA3" Content-Disposition: inline In-Reply-To: <1428679484-15451-13-git-send-email-aik@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH qemu v6 12/15] spapr_vfio_pci: Remove redundant spapr-pci-vfio-host-bridge List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Alexander Graf , Michael Roth , qemu-devel@nongnu.org, Alex Williamson , qemu-ppc@nongnu.org, Gavin Shan --YzdYn+D7cUqe+VA3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 11, 2015 at 01:24:41AM +1000, Alexey Kardashevskiy wrote: > sPAPRTCETable is handling 2 TCE tables already: >=20 > 1) guest view of the TCE table - emulated devices use only this table; >=20 > 2) hardware IOMMU table - VFIO PCI devices use it for actual work but > it does not replace 1) and it is not visible to the guest. > The initialization of this table is driven by vfio-pci device, > DMA map/unmap requests are handled via MemoryListener so there is very > little to do in spapr-pci-vfio-host-bridge. >=20 > This moves VFIO bits to the generic spapr-pci-host-bridge which allows > putting emulated and VFIO devices on the same PHB. It is still possible > to create multiple PHBs and avoid sharing PHB resouces for emulated and > VFIO devices. >=20 > If there is no VFIO-PCI device attaches, no special ioctls will be called. > If there are some VFIO-PCI devices attached, PHB may refuse to attach > another VFIO-PCI device if a VFIO container on the host kernel side > does not support > container sharing. >=20 > This changes spapr-pci-host-bridge to support properties of > spapr-pci-vfio-host-bridge. This makes spapr-pci-vfio-host-bridge type > equal to spapr-pci-host-bridge. >=20 > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson > --- >=20 > How do create aliases for types? ^^ I assume this is left over from some notes of your own? --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --YzdYn+D7cUqe+VA3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVN0PjAAoJEGw4ysog2bOSVZsP/iBDqOdQFQn3Atx/RC1JGQPB 0MIFFL3X/twaa1fmrvrJO+gF4/9XnWbnPvo8yuNRs7qTn66hnUtzlw0sLqvUKOkM tPiO8lyxPDnKa2cQvFTwiOwBr/jfM6ljvlqlM+fRZcvViaJuMWvWct/7x8ounZyY z5UMRQ9JtZGS1HAOmu5MVfCf6/apza3FAWg7dkvjf1jvZxIO2OA+aFH0mlXsItJR 25b4dX8uVfmNSnnQLS7R9NJEwGwrfLAXzqKLGxkR8uCmtR+EsY3wHX8kPXId/1DZ Aww6DcREWSdjYPYuFYe45pdT1fqCRuaqfpanAzy4xwR4MXhchqJ05uZYUiSjQiZL HZ96LagV/sk08FEVciU0zxFBy+4LpWnJuVU3d7IillbI50HiIwRAVA+ALzLxFciY auV0LimqN10GeMoL2aIegCn6lz3+wtoF4lfuIGcRxOmDL6CjUEx2Gnh4VWssI5m4 4CNey+iOMzIqx/c2mfqNWCrbIyiowdrcYNXhyesc02ISoj2uy6kJkhxkVxIZJXpu H17jgTicIgvtnnb4yc6Cl9qLrUAKyhvQxQ3F4EhNx8gYwGIkTgQRUl4iN16ATJwL AWJ5bIHrK+tS7ZZhw5dOqMo6xCObNgVmoBqM8Nb1moeZBXM2E/jnbfYI11OVhbqE dWo1whyXDMVWIVLpB+3Z =B1hN -----END PGP SIGNATURE----- --YzdYn+D7cUqe+VA3--