Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp254322pxt; Fri, 6 Aug 2021 00:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCcLMyV+Wa7GhNPjJYLDClUVxOZUekC0/Q4+q+rl9QVteYLbymCKmsMrOBi/lvYG3psyET X-Received: by 2002:aa7:c3d1:: with SMTP id l17mr11560934edr.299.1628236305878; Fri, 06 Aug 2021 00:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628236305; cv=none; d=google.com; s=arc-20160816; b=qfPJGbZb5c3YU33+ph4Io1zHGXInTaNJLOV3LjNJsSJGqT1OhWLoMIxXGn+WMX9oSo 9Iq8VCCes8g8eYMHseJ2PeHj8L2Z/T4kW6nl9QBCjLtc7530m2neFb0q6qHOs/oSkZzN +XnmhMmUCtlhNw6Psh0llsgPK/xjQ922QipxchAJK93HORyXYmRXar9q+cHWce/eYnMj TY1udC8Uy/QHUUzJ340JZVFrqk9cVmcNHqDVEbhYA1AD5JMwA7aazY6bwkxlFO2Y3Ce2 lkaJLD5wr474lpZRocu44mRdU+QP4GbM8U6SRMpLxnT4o/3rvviOi+f+HMPnG2oiNouY jS3A== 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=VgP74InI3Uz0qZ2/LQM1R3Ud9iWaj+wk/xGRWtN/6yY=; b=dpvViEc8YKwAlS3SewJOBC6vWkjyxcavdH6c4TH5QBfdN8XgNLPj5jMTvvkTdkd/ss Xxi5cGDjwjhQHG7tIIfAPnlt2LLI0zg5T+9J5qzv8f7EX9tkBgbZWmrZIioCKRjXyfPg IHYkseXFq/Ns+RPytmoLv74s+lB8h4wIumOPSISi5WLGID4oQ053FSbu1UZSN0uO3XoL i2IBUV0OI/i5owGbCDMd4sqk4EZnMdUTVVlwzfQp4kfcYTuu4WDUK1NiA9M0gaNOObkU 7UmjSuhFqV9hGKFdcPhg6WHCuQrtxi6ID+Ylv2ijRZk8dvzrEzmmJ2D8iFfe56/7zM3R Jbcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=Xi+yKoqf; 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 t12si9436874edc.179.2021.08.06.00.51.22; Fri, 06 Aug 2021 00:51:45 -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=Xi+yKoqf; 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 S243144AbhHFFdU (ORCPT + 99 others); Fri, 6 Aug 2021 01:33:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243121AbhHFFdR (ORCPT ); Fri, 6 Aug 2021 01:33:17 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FE6C061798; Thu, 5 Aug 2021 22:33:02 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1007) id 4GgvJT5j2qz9sW5; Fri, 6 Aug 2021 15:32:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1628227977; bh=VgP74InI3Uz0qZ2/LQM1R3Ud9iWaj+wk/xGRWtN/6yY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xi+yKoqfW0FkYj+E2G8mVLF6aPdhG3HhV0yIOwgUkVBn7p4NzF/iYNdpUE7HHitZk j5qfp4AdzdTAt4sE4Hivsc3v1s7U/ZIalR03kQxlOAms683p6OpZ61PFOoYxGwQzQD Bgsf0Sx0ROMhpcJNioWxawsw9nT/kGNH5IKSmLtk= Date: Fri, 6 Aug 2021 14:47:50 +1000 From: David Gibson To: Jason Gunthorpe Cc: "Tian, Kevin" , "Alex Williamson (alex.williamson@redhat.com)" , Jean-Philippe Brucker , Jason Wang , "parav@mellanox.com" , "Enrico Weigelt, metux IT consult" , Paolo Bonzini , Shenming Lu , Joerg Roedel , 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: [RFC v2] /dev/iommu uAPI proposal Message-ID: References: <20210730145123.GW1721383@nvidia.com> <20210804140447.GH1721383@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xtXF0LkKM6+DEdEM" Content-Disposition: inline In-Reply-To: <20210804140447.GH1721383@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xtXF0LkKM6+DEdEM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 04, 2021 at 11:04:47AM -0300, Jason Gunthorpe wrote: > On Mon, Aug 02, 2021 at 02:49:44AM +0000, Tian, Kevin wrote: >=20 > > Can you elaborate? IMO the user only cares about the label (device cook= ie=20 > > plus optional vPASID) which is generated by itself when doing the attac= hing > > call, and expects this virtual label being used in various spots (inval= idation, > > page fault, etc.). How the system labels the traffic (the physical RID = or RID+ > > PASID) should be completely invisible to userspace. >=20 > I don't think that is true if the vIOMMU driver is also emulating > PASID. Presumably the same is true for other PASID-like schemes. Right. The idea for an SVA capable vIOMMU in my scheme is that the hypervisor would set up an IOAS of address type "PASID+address" with the mappings made by the guest according to its vIOMMU semantics. Then SVA capable devices would be plugged into that IOAS by using "PASID+address" type endpoints from those 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 --xtXF0LkKM6+DEdEM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmEMvvYACgkQbDjKyiDZ s5J7OhAAt80UyM01hO9UcB2WUWkDFXZd5ryLChQk4nBBHH6AolfinitcVmNoHb6l +WQQGubNPMHJa5bzSpa28cViR8hcc1frjPwqcHbUb8YS4h7ILXpk3BiEt5jIZ4Oc xUP6lKK8G14ZltBQvNNzjrd031aA+XHEx80bpU1q4xKMCLqJt2CFyd5bTw7aOabh +qGukHkhcotpFTroiAkuJrHRTOy8nvbl8nAw/ult+59c0DnTao+yfdFBjf3+h9a0 iPcnxEWS8HJ80/Fv9KpLnQ0tNtXoTY2Q/dBfS4FolPwYg9bfNqm8Xdk8t4owCfeF M9m0fDBDekxaM2Lsr+fGMZ2A9CdrXs8NBAaNWvU92H3EnIZBmxb95VoaJsryN7gj IbZVLLz4zY7BQos7pc7EJKB3uYzAOpNpvrTZKPTOb5+oTwFrr60fFbzlIe4lyg/z XOZ4tHtlzsYxhaFZmVRrW0taJ30aR9vHGiJSbcQlrs1W1cK8nAjO0QRkeYmVyRqA o0TFw1SBNIIieNzPUxHa56cNQm0M3Hi9w+RkcSmsK2aDhaovrM7l5xgSs5/HxIqI qT6VBd/+bqhK+y0iA2SFd3d/521yGKu41XcEvkya0k0dv2sCUwDydNC4knVGoAUc nlRowbhm5r9RbcHcsCcduvboA7JAEMhU2aESrQGrHwTAXn2cS+E= =rCVy -----END PGP SIGNATURE----- --xtXF0LkKM6+DEdEM--