From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkpJp-000252-T8 for qemu-devel@nongnu.org; Wed, 22 Apr 2015 03:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkpJl-00072v-Sq for qemu-devel@nongnu.org; Wed, 22 Apr 2015 03:43:37 -0400 Date: Wed, 22 Apr 2015 15:34:09 +1000 From: David Gibson Message-ID: <20150422053408.GK31815@voom.redhat.com> References: <1428679484-15451-1-git-send-email-aik@ozlabs.ru> <1428679484-15451-6-git-send-email-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DfnuYBTqzt7sVGu3" Content-Disposition: inline In-Reply-To: <1428679484-15451-6-git-send-email-aik@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH qemu v6 05/15] spapr_pci_vfio: Enable multiple groups per container 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 --DfnuYBTqzt7sVGu3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 11, 2015 at 01:24:34AM +1000, Alexey Kardashevskiy wrote: > This enables multiple IOMMU groups in one VFIO container which means > that multiple devices from different groups can share the same IOMMU > table (or tables if DDW). >=20 > This removes a group id from vfio_container_ioctl(). The kernel support > is required for this; if the host kernel does not have the support, > it will allow only one group per container. The PHB's "iommuid" property > is ignored. The ioctl is called for every container attached to > the address space. At the moment there is just one container anyway. >=20 > If there is no container attached to the address space, > vfio_container_do_ioctl() returns -1. >=20 > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --=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 --DfnuYBTqzt7sVGu3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVNzLQAAoJEGw4ysog2bOS770P/iGsa+GByVgE9CvN7lDuDOKu M8W1m6feStx2FIDKHJZKFQjuvHBMnho84Z5TynP/Jvci6keHqOnwiDoGSYDtpEKg 2cY1NYizMPFC3ZAgvtFKpVh25w6HEJ7EoebiaSicJBYCKN/bMTYTo5rRMgWq7Lkm /NSQppIIFuddgK+gs5bAyxoCSyGv97r6KZR+DKbUGyCaH+Ga54zbee5+l+AgBxkN 3Bx5iI3fE9d/F25V+unI2g+FUYbDQDT2GzE7cIRzlutW0xuRk3KBs9FaOZC6n+gj a75BPWSijGhbuOGjrRu1X8XZGDhikZFO42o24d6MGHqXnoz30fqBfzRKN9tuR1zF ujWYgz4i9gnG3ynCMN7wgvEe7BKoqy0kH1Mm1Rj8v2CZAiYx5g/kN79RAcE+EO4G MNT2mCOXMFgOun4Lv1M16jt3aIUaXWENay0L996c2CNG+JrEq3hYO5nzikzJ2JpR 6f2kT8yJXLvOURLid4JXFrjhxYoitNhu5lLqyM5kAZ9e+owUGYp0Ojd7+53eIR6F iSlm4vb+cSSgITsewjBZxzXjPkPVOxVmTub7tU7cM44KhcipJp8/kEEZpK9AJYLq p2E28veaGZSIXcq90MG0yHc8ZYAmWkpimCvu7qcM+BIyypfpTwEPT+m4Yqo/wnmA p9cbMmlmAYPMGGSUsask =EMDj -----END PGP SIGNATURE----- --DfnuYBTqzt7sVGu3--