Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp896068pxb; Thu, 30 Sep 2021 21:22:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAN8g0hy5GcascUt28h6EdLw5uugWU1wqCui5AU9WDLuwawC00dtz7jX+ifOWMen8jxqeQ X-Received: by 2002:a17:907:7601:: with SMTP id jx1mr3702521ejc.69.1633062166528; Thu, 30 Sep 2021 21:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633062166; cv=none; d=google.com; s=arc-20160816; b=DYOsdG7ZRKHS4h2GOv62GgUmU8gDh6IICiKbeM3adAMyDFu2VXymErXQZiyoXII/O7 2kyD0VDllENUH+4/UigEE6BBkmy9kwbpuIP3xrFSwYX2qFxI3cj4pNT2EB1Ki7lyuUNP AU8tFqZdqW1XmiB3Zq0i6nHNeGBiYRB7Tvnbw9fKiCvA98nmfg7ovyiAM3YvL5mw1RJ/ 0VACT9zN6uKLCHSmpH6lh+Tzl3udT4getp/S/BdzPSIwpwkKlWbMLIJk5F7X2J0QkSWE pT5BO99haa6ht+QaDAFgN3479gUC7KXtNWLcju+2xzLBx9iRk4mPnkDHB7sNggmtmuFQ EiTQ== 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=ErzESc+3j15+IBkmNZmWRkNDim6Klxc8DaJ69XgNhq4=; b=M4l9GHnSh87NwhIhgKvDsBz/qYBbbIDamV4S65zxRITx8u7XNE3SENdz4ms2ZuoUVY rRSAyfoR1Ik+luYgYSWbwrpsR4uwm24U+3fAAmRva8fou7Nu5j5eL1xMwqvFzSXsnUFi ENOIvDyxoqU+UCpJ/LvO3sxYFT2uMneMRTpZgrUj91AUOGr93popdAxyoLsC5P242y7e cvvMh22XModoNFk6SvuChwKNNezjOVA8OLG+OnRzIKPM0wf92N6SjgMkmf6m7tu9z19I KjostqVkA+JFe1NmR+5+DbBsiiMWUB7YKGhVpVyDgiuSUt0UfWm0QB8zT/6lj/9rUFUJ egew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=ARxZnU3s; 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 bf16si5448548edb.226.2021.09.30.21.22.21; Thu, 30 Sep 2021 21:22: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=ARxZnU3s; 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 S237049AbhJAEPr (ORCPT + 99 others); Fri, 1 Oct 2021 00:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235689AbhJAEPq (ORCPT ); Fri, 1 Oct 2021 00:15:46 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee2:21ea]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0BAEC06176A; Thu, 30 Sep 2021 21:14:02 -0700 (PDT) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4HLGvX3VR8z4xbT; Fri, 1 Oct 2021 14:14:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1633061640; bh=ErzESc+3j15+IBkmNZmWRkNDim6Klxc8DaJ69XgNhq4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ARxZnU3s5FNr8NvyJlmKRTVFYh6OTyT7VDurD/TxE3AgXrUf0o3e0BEn5otjeg9Gh V+tlfc9uRhb4TapUkstbqYbj/OvuZqK2eF2/sIuv2u9+EwpTjqnBnL390uNsxu9sCr thN9IcRSVl7shSeObTIvRdq5bYQJZwz6iOXfstXI= Date: Fri, 1 Oct 2021 13:54:52 +1000 From: David Gibson To: Jason Gunthorpe Cc: "Tian, Kevin" , "Liu, Yi L" , "alex.williamson@redhat.com" , "hch@lst.de" , "jasowang@redhat.com" , "joro@8bytes.org" , "jean-philippe@linaro.org" , "parav@mellanox.com" , "lkml@metux.net" , "pbonzini@redhat.com" , "lushenming@huawei.com" , "eric.auger@redhat.com" , "corbet@lwn.net" , "Raj, Ashok" , "yi.l.liu@linux.intel.com" , "Tian, Jun J" , "Wu, Hao" , "Jiang, Dave" , "jacob.jun.pan@linux.intel.com" , "kwankhede@nvidia.com" , "robin.murphy@arm.com" , "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "dwmw2@infradead.org" , "linux-kernel@vger.kernel.org" , "baolu.lu@linux.intel.com" , "nicolinc@nvidia.com" Subject: Re: [RFC 06/20] iommu: Add iommu_device_init[exit]_user_dma interfaces Message-ID: References: <20210919063848.1476776-1-yi.l.liu@intel.com> <20210919063848.1476776-7-yi.l.liu@intel.com> <20210929125716.GT964074@nvidia.com> <20210930222818.GI964074@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yg8w2iyVSrHxaZnC" Content-Disposition: inline In-Reply-To: <20210930222818.GI964074@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yg8w2iyVSrHxaZnC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 30, 2021 at 07:28:18PM -0300, Jason Gunthorpe wrote: > On Thu, Sep 30, 2021 at 01:09:22PM +1000, David Gibson wrote: >=20 > > > The *admin* the one responsible to understand the groups, not the > > > applications. The admin has no idea what a group FD is - they should > > > be looking at the sysfs and seeing the iommu_group directories. > >=20 > > Not just the admin. If an app is given two devices in the same group > > to use *both* it must understand that and act accordingly. >=20 > Yes, but this is true regardless of what the uAPI is, Yes, but formerly it was explicit and now it is implicit. Before we said "attach this group to this container", which can reasonably be expected to affect the whole group. Now we say "attach this device to this IOAS" and it silently also affects other devices. --=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 --yg8w2iyVSrHxaZnC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmFWhooACgkQbDjKyiDZ s5KWOxAAjyayEpk3/2UCunzQoONH2hekaB3mFVJmCIhc7mJCra4nKi0QetNRNSJR Mu4bgd8Espq9vrCUL2gHPfaXOfJqi34ln+aElFfmOiKSiBz0tXQJ3e/L/KWpDAAL L5KsZxLwWJ4nOCpk9skfKxzECUasDHOgeUHvLhJiLEoHP3dYwO+gijf96rOcTwmj PHBPL960LXUGBIbFAocGquSuvMOUpbtIRUlCmdVgkPZeWqm2WCUs5/jesBnxAKtj qJU5aEytGm6bAhFfhvtLasQUVC42xVJmE0A9fXGvhvKtigEcWHWd4c16E7tGYYB3 z7IliPfnD8cuhMN7MzlImEM3zBQWxrgdQn8zKXvCvcIVBGAvlfcj53KYHuPyLGZE 8SzuCMbiqGQjLNZ/d7fxrTalaOvn8r3/njB/YpLUzaRXeUIM5K8MK1pmxLtbOF2q jYt8WGVQhDFU+BE/YdPDme4E8kgrskk9d3QDeb00pzHayBuq2RZtA1WqnjXDGvfr uJPnyOiH2WigaRlsyKO6l0a9WmnbWZE5f75rW476Lw9qGFpU8d3vfNXhQHM6payb 4LwEHjDGgdlQncfujTBXHpBt6kH9r0Zg+lmA8mmHTpfRVfNoJtB2HuvFQgUMYVNa Fa0jPYeQTMyjlp7DpxGosCLB9OQJ3E5S64ppTdpPIQULRQKFx4w= =37P5 -----END PGP SIGNATURE----- --yg8w2iyVSrHxaZnC--