Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp5047207pxy; Tue, 27 Apr 2021 19:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBy04NdEUkYKITCjpoSelslTwMfcN4QdTg9X0tY07gxrOnE1Gx0jTXZEbAK1o/oIqiXxVK X-Received: by 2002:a17:90a:7f03:: with SMTP id k3mr1457882pjl.213.1619577791420; Tue, 27 Apr 2021 19:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619577791; cv=none; d=google.com; s=arc-20160816; b=r4ytCnIatAliGQ4C3rlPlJRL4x1Rbs1M289UQbHwzMS1HdfoRVL9a0UAaRTXxFjAF/ unylA7dRMy4x8r0zQDEg5vqAhAD4SvOoc90Q7UHbjKpaIHx3dQ9Z+JdlVgvrpMEeTP5n acoOyjT5zIviguEN94zDiHq/l1IeUuiGx//ksnZ2z9jwDkTVx5Iel4YZI4Zak2t/Xg1S xLY90KGT35MfA1BxRwE6dsNzwSKJN4TzRiYY/t0By068tf5oYOoqjgnTELHJLmHwqcn3 V6IlQik4vUAi+YhW8+y6UUv8e+21eYObhIfVIm/TT4JCTDt/5noBNZfTe5hkJTUUu3QL evJQ== 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=cKbqL6SWskGAq/0ZrlCBG2zAEd8zwX76lWFmohpYqYo=; b=FRlQNB5SxIbdf/62+ER1yAUSzamVm1+Y1U8IYLpIvTzgvgIkeSHmZlvzwXElgGkwkO I5L4KRyB5RvE0ga9NVo3fEF1VF1Nb9ElL79K6IG+k9T0ax51KgFgTpz8Ynu/y9tWgqwg NbnsGiZMRrQPeFbrBSAjgIjIzlCZ1NMle/EUhSPvtvLwlbLYWkhSyIcwVlVeXBC1dXSF IfuxOAxWpUtn6tquviCYfZdVoHo8SHnuQRg/1lqvGswOPCPjTlx37UE0AonZDCFdw0Ji 6daWFjGCXhAkbpgEgQlG/kAjDDV+Xq+tvsWisA0YDU4NVTmKM8jLD+GNPCLGc3RpfjF7 9xrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=Sflghnlg; 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 c6si1946226pgl.78.2021.04.27.19.42.45; Tue, 27 Apr 2021 19:43:11 -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=Sflghnlg; 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 S237111AbhD1Cmg (ORCPT + 99 others); Tue, 27 Apr 2021 22:42:36 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:53095 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235422AbhD1Cmg (ORCPT ); Tue, 27 Apr 2021 22:42:36 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4FVNFB4FRJz9srX; Wed, 28 Apr 2021 12:41:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1619577710; bh=gE3cwxeK8l52V3mXQ8Xznwj1fLwrrrjLu8KWJT/DX9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SflghnlghzACtBYRzPNbsCJ+dAV56XMiDSEKz9RA3l5nSe+zufSUmI3DT5EaR/A3T BaKjdbudVH0aFttmCtWqp5/X40LE0tVirFJvWdJVJNqXw6uDi46p2SUUxuf/6kS/HU f/ygGsxHlo7TvpMhoX7/NxFIL1i96S+MJgESlHkE= Date: Wed, 28 Apr 2021 10:49:03 +1000 From: David Gibson To: Jason Gunthorpe Cc: "Tian, Kevin" , Alex Williamson , "Liu, Yi L" , Jacob Pan , Auger Eric , Jean-Philippe Brucker , LKML , Joerg Roedel , Lu Baolu , David Woodhouse , "iommu@lists.linux-foundation.org" , "cgroups@vger.kernel.org" , Tejun Heo , Li Zefan , Johannes Weiner , Jean-Philippe Brucker , Jonathan Corbet , "Raj, Ashok" , "Wu, Hao" , "Jiang, Dave" , Alexey Kardashevskiy Subject: Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs Message-ID: References: <20210421230301.GP1370958@nvidia.com> <20210422111337.6ac3624d@redhat.com> <20210422175715.GA1370958@nvidia.com> <20210422133747.23322269@redhat.com> <20210422200024.GC1370958@nvidia.com> <20210422163808.2d173225@redhat.com> <20210422233950.GD1370958@nvidia.com> <20210427163954.GC1370958@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JQRVQfh5FhbBFvT+" Content-Disposition: inline In-Reply-To: <20210427163954.GC1370958@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --JQRVQfh5FhbBFvT+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2021 at 01:39:54PM -0300, Jason Gunthorpe wrote: > On Tue, Apr 27, 2021 at 03:11:25PM +1000, David Gibson wrote: >=20 > > > So your proposal sort of moves the entire container/group/domain=20 > > > managment into /dev/ioasid and then leaves vfio only provide device > > > specific uAPI. An ioasid represents a page table (address space), thu= s=20 > > > is equivalent to the scope of VFIO container. > >=20 > > Right. I don't really know how /dev/iosasid is supposed to work, and > > so far I don't see how it conceptually differs from a container. What > > is it adding? >=20 > There are three motivating topics: > 1) /dev/vfio/vfio is only usable by VFIO and we have many interesting > use cases now where we need the same thing usable outside VFIO > 2) /dev/vfio/vfio does not support modern stuff like PASID and > updating to support that is going to be a big change, like adding > multiple IOASIDs so they can be modeled as as a tree inside a > single FD > 3) I understand there is some desire to revise the uAPI here a bit, > ie Alex mentioned the poor mapping performance. >=20 > I would say it is not conceptually different from what VFIO calls a > container, it is just a different uAPI with the goal to be cross > subsystem. Ok, that makes sense. --=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 --JQRVQfh5FhbBFvT+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmCIsP8ACgkQbDjKyiDZ s5LRgBAAnUYT4mzHS9z12bEDDjxIJlNISL9eC8ubKY8SIUm+mchxLYgEY3wAkoJL eFglIjrPvJD6R2vnpBVT9z8SNbHHULxTcVcLbhb1M0Qf5TrzniLGaBfdJbrgxomz lMTL3xTJ/djQcAeE4ulfQheA5Rh5OMmEmrFgzUUkI0y2aHK04YCyjxnxFYMSmIje ECTKFFl4sCwH6d7mDfOvz0CcelTIuI4OvpaFPw8jdKCv8rhF56C0En63sSdrGDIm iU2d/im/d4d7cnQfUHtcdw9neI4ia2NNYf2tIzLz2Ow9TBavv3VaeHMjUKQueKTE Adk6pdb9yZxeKurPYFoU9Cm1mhi4zbd+K48TGAexE57xCDWSEZcr44nM4ALv8YjC 6ZCU67IEM+J/uM0XYyv99G/ctqQeyQRRw9VtxT2sM/qBiI3S+t+S80LcFXV63La9 uP/5VvEe+C5+yMatJxFkdMQ92djhlFqFFnu84vhJnQX0U9zJvEx2XvSpoc/cxOUj uORn3Pex3YVOoh8SSIM8eJOEZxYy/Zk0EMZgP1Ub0zgD2PaS1DUqYgkVNslUZ1qs qhkZttZsxvwsPKBLXoSSarYj6h25ic6a8vGr/GMPxZJ6EDHuivzkqsJY0owcdIus AlCuTBNJvmY/5OUSao/MZ/XrbOXP/hCgYagOjMsTsudi3e/WYp8= =hSc/ -----END PGP SIGNATURE----- --JQRVQfh5FhbBFvT+--