From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80844C32771 for ; Mon, 26 Sep 2022 07:23:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234059AbiIZHXe (ORCPT ); Mon, 26 Sep 2022 03:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbiIZHX1 (ORCPT ); Mon, 26 Sep 2022 03:23:27 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645D8326E9 for ; Mon, 26 Sep 2022 00:23:24 -0700 (PDT) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4MbZ3q3q6Qz4xFt; Mon, 26 Sep 2022 17:23:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1664176999; bh=WFfOHx1xIgXuGxU//nX9avMvGbK3JU8CynxOvSEkiOg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f6i2RKZUUWclqNK/Kjpuhh7SgnUhWHBbdgq0/D9bvgyz7cFU4RfTq7LR3zjoCYRK8 siAN5gfg34oNfQeA2tjwVqeIvjri3zFo56WhHYc88CHkGtT5sxZOQGwpLp3jaLZGiS Bz0DKWKo0Erov4aWAUbx7HRUVtVd1+A/Ait3ro3E= Date: Mon, 26 Sep 2022 16:34:01 +1000 From: David Gibson To: Alex Williamson Cc: Jason Gunthorpe , Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , Eric Auger , "Tian, Kevin" , "Rodel, Jorg" , Lu Baolu , Chaitanya Kulkarni , Cornelia Huck , Daniel Jordan , Eric Farman , "iommu@lists.linux.dev" , Jason Wang , Jean-Philippe Brucker , "Martins, Joao" , "kvm@vger.kernel.org" , Matthew Rosato , "Michael S. Tsirkin" , Nicolin Chen , Niklas Schnelle , Shameerali Kolothum Thodi , "Liu, Yi L" , Keqian Zhu , Steve Sistare , "libvir-list@redhat.com" , Laine Stump Subject: Re: [PATCH RFC v2 00/13] IOMMUFD Generic interface Message-ID: References: <20220923080307.1d9a6166.alex.williamson@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zPSW0XCHJZCxFT/C" Content-Disposition: inline In-Reply-To: <20220923080307.1d9a6166.alex.williamson@redhat.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --zPSW0XCHJZCxFT/C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 23, 2022 at 08:03:07AM -0600, Alex Williamson wrote: > On Fri, 23 Sep 2022 10:29:41 -0300 > Jason Gunthorpe wrote: >=20 > > On Fri, Sep 23, 2022 at 09:54:48AM +0100, Daniel P. Berrang=E9 wrote: > >=20 > > > Yes, we use cgroups extensively already. =20 > >=20 > > Ok, I will try to see about this > >=20 > > Can you also tell me if the selinux/seccomp will prevent qemu from > > opening more than one /dev/vfio/vfio ? I suppose the answer is no? >=20 > QEMU manages the container:group association with legacy vfio, so it > can't be restricted from creating multiple containers. Thanks, =2E. and it absolutely will create multiple containers (i.e. open /dev/vfio/vfio multiple times) if there are multiple guest-side vIOMMU domains. It can, however, open each /dev/vfio/NN group file only once each, since they are exclusive access. --=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 --zPSW0XCHJZCxFT/C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoULxWu4/Ws0dB+XtgypY4gEwYSIFAmMxR9IACgkQgypY4gEw YSKy9RAA1bDcpJHuQR/pXfAqSSPYcwHCyJ6Lq/4h8Gvb5QsRxPT98D92uRP78SWJ DusKzRlI7OIAAj0iYzcTIm2tGj+4rEeOCwSGY5ubZyc5sR2RGatzw4RjOPtQg4Qo w8i14niXiEuchHYQIIu4R6N/kZrU4ijSve0y8TXHh5aMOqzD3uiV4/23MOwXImcR kpalF3u/w+maH3YSVxwycLBGGthmav6R9OE2N+dAXljhMnIbPHslU6VCj1jpZM10 2wNhaBFUGfG+SOpl6ZyvmxYqZ4noR7NoiYtQgDnc0BFTqTowIH2Hg2s0IzWBntNS qMFknNnxtBWc6NbyTd+VszQb2eaA7G+/wbMCpOqWa9+m2dGceX8twwcQvS+pMG6S EtMEraGyDiz2jT2yieytmFnYtpjlCYp/GGOjjBXvSnv8GKacOZcKAb0+hl2dFJ68 KNNmWyhzLtHoS2Ootv/Vp9ORM42Ow13IS5XN6wxvuLxyr7qo1f/6bGG80gGb7c06 ZVFsXfnQYysTN8Gq8/99BJZmwr1EfrRJCWphyWv9/T9SvDtpICslJJIvq6js5uYI QCr6YhjsHOlZVGJ0vkPzvyvwfHGbnstKR0PWnksGf+38lf1f5raQWskWLYK9Q04t UKHcOf0splCwOZ6iE1P99CQ3JYaYp96rlfFPMLnjF+FLGkMWgmc= =72Yx -----END PGP SIGNATURE----- --zPSW0XCHJZCxFT/C--