Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp271737pxj; Wed, 23 Jun 2021 21:55:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSD0qAjT17BQMlkxnNNEuLSFyahYXN/8ohn/Mq53d6dDRDwsBXUaJ5w3E3/MbTBI0PvRIf X-Received: by 2002:aa7:c50d:: with SMTP id o13mr4371813edq.9.1624510547000; Wed, 23 Jun 2021 21:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624510546; cv=none; d=google.com; s=arc-20160816; b=u393qLq0mZPLJoD1EUS5BdS4E13J99Pkpsfr6rr2Bu/oZ4+C9hyYuIshnKhrFR2Okm p0eAPc0QEZHA93SH6l1GmcnR6CgzFecRkkVxBDgNNAIgyQ1VpesrMJ4BgciXX/SD81k9 GHMfj2CVXMnthjc0wqpsfAAIZ4Diiv9N7O5SwOJxI3J99IIr+vDpwhRfcoq05V3pzUML bcTI4GhA2zn+MQs1c81ZkxG4ekAffIbBbE9v9uc/LnQiyeR+qqoDxTLKlmABDWkgPG++ hakbva+PtpqttVYZfFyDtfgtske4MrrQJS8uo/Rre8gDKfHgJkSMnAMJwElfcaAGWKFN xBUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oS5/nk6D6ABuWjySbvhaxZV5pw0kY2gJlLA6kdjePLs=; b=eo8tzR17Fi1kCsSyjFOLahdUcbU/re4/iDYk5OPIS16OKO39Ea5stme+JCmaOcidCH 25cEqAefHuf2m0Sn6oTU7iKqHDC0moyXR89N32cuNTnf7X46R7egskB6mMQx+GcsAZd4 tVA87AnMYiJXx1iLJXcnmcI9lkcUC0ojeKfFoIYz+y9J1mBn78Xfeiid0PTS3pZ1uHDo b2+PpwGaVaVoGLhawmCsJRb6N9R09auR+acQnVVN1U0cqOIkvvPow6QvQb+U4e4kQjc+ xUbEZ2EAluuDrQUXnZNNHHIVEHn9Hn4t1GcT6z0uL238JXf3aW8fsshbAJ7S5Z48+kaK KmrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=ZuxeZjTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by10si1762099ejc.77.2021.06.23.21.55.24; Wed, 23 Jun 2021 21:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=ZuxeZjTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbhFXEzo (ORCPT + 99 others); Thu, 24 Jun 2021 00:55:44 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:58469 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhFXEyu (ORCPT ); Thu, 24 Jun 2021 00:54:50 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4G9SRT58RKz9t0p; Thu, 24 Jun 2021 14:52:21 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1624510341; bh=Sm55XzzGfIQHnANDiUMDuvbZ7IYjUCtojFRRcEiqmdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZuxeZjTQrfzT56BXV29tLxlyIOHOXy7GQrcr5dBHMdRwtRLepAJHBZ5QOStm+KtB9 y/cqy+JBpGt3PhpRnK8A4w9a+1QeLo6AY7yDNB6p+zQ7fzd3+URtYF1LoCqsBD7qyE RJM+qZc3B2GADxb/auGsSb1b+o/5v4GHaOrRSSXE= Date: Thu, 24 Jun 2021 14:37:31 +1000 From: David Gibson To: Jason Gunthorpe Cc: Alex Williamson , Joerg Roedel , "Tian, Kevin" , Jean-Philippe Brucker , Jason Wang , "parav@mellanox.com" , "Enrico Weigelt, metux IT consult" , Paolo Bonzini , Shenming Lu , Eric Auger , Jonathan Corbet , "Raj, Ashok" , "Liu, Yi L" , "Wu, Hao" , "Jiang, Dave" , Jacob Pan , Kirti Wankhede , Robin Murphy , "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , David Woodhouse , LKML , Lu Baolu Subject: Re: Plan for /dev/ioasid RFC v2 Message-ID: References: <20210609123919.GA1002214@nvidia.com> <20210609150009.GE1002214@nvidia.com> <20210609101532.452851eb.alex.williamson@redhat.com> <20210617230438.GZ1002214@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yoFsgJzPurSq8+17" Content-Disposition: inline In-Reply-To: <20210617230438.GZ1002214@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yoFsgJzPurSq8+17 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 17, 2021 at 08:04:38PM -0300, Jason Gunthorpe wrote: > On Thu, Jun 17, 2021 at 03:02:33PM +1000, David Gibson wrote: >=20 > > In other words, do we really have use cases where we need to identify > > different devices IDs, even though we know they're not isolated. >=20 > I think when PASID is added in and all the complexity that brings, it > does become more important, yes. >=20 > At the minimum we should scope the complexity. >=20 > I'm not convinced it is so complicated, really it is just a single bit > of information toward userspace: 'all devices in this group must use > the same IOASID' Um.. no? You could have devA and devB sharing a RID, but then also sharing a group but not a RID with devC because of different isolation issues. So you now have (at least) two levels of group structure to expose somehow. >=20 > Something like qemu consumes this bit and creates the pci/pcie bridge > to model this to the guest and so on. >=20 > Something like dpdk just doesn't care (same as today). >=20 > Jason >=20 --=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 --yoFsgJzPurSq8+17 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmDUDAsACgkQbDjKyiDZ s5K4XA//Y4QIGGAGVVbJfKrlf5JkN2/2a7VHx4vaUfc4NR5mVhkNYwvGbSYutZQ7 AjjTm5pfpoAem4nB8Q6U3GfaFTsj2YUg6Vodt8xJhSilvNHENa04nCVQMhACfYUn SaQAMbx4gnuxaL02rl5NzWe5u5j1Vm1L485cfpMvdDae0Huq4qiMV4zCASCxGkO3 vIRkdPSdp8legFimjVdQJPLVnAIFG1nJk/9toYcNpXp0esbOxYMHszvcXkMM3F2l 1qyY4HbXOHBGQTvuAAAATYZve/p9YqYQ8ePzuYuLo8q4HAzL3V1uB9Dy9sGgXhFL g46MfO3FKjnjrMxpanmv6ztsnoY4WOxMJundhPQ1ANayPNAPVSn3KaCSzX7hcfQH xSOX8kjr5RDi1F3BYKPmOOGRK0dmGMRaWlCapWSLkobKzUUAaUT43jMa2843gP9O b9PSXzODLGUu3fIUITRoMLGI881jigBWg/gmtV1egbi0s/qngiheJFzP9mptbzfw eciggSqjH/4ZBuBpRhNDnICQNNF/39/r9qOeWeiBicfW+8HciMvcsjvcWVgOnAhl /nIFGSMu6uTSWnSP6WR4fYDy7WRlsQM+GUk58WekBW19yzvoaoubmBXRCHq5eHmF hKf3A9OxFZRJNs0G8wp6e6R3RSp67s+4+AUyEmEdzsJ6863Z9xw= =1/9P -----END PGP SIGNATURE----- --yoFsgJzPurSq8+17--