Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp110658pxt; Wed, 4 Aug 2021 07:06:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1OXqZuDp09BobrVB3SO7KbpDJnACUt1i1Uv2o9TT0ljC+vB1wOY2bA5s7Nb6341+W3+cG X-Received: by 2002:a05:6638:1251:: with SMTP id o17mr12794706jas.15.1628085981358; Wed, 04 Aug 2021 07:06:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628085981; cv=pass; d=google.com; s=arc-20160816; b=d3CzI4RB6E9Y13AwRa5quVn8mUnrqENsrPRmL7nWeWx/g7bgONIp1T/9N5EOTdglfT LAnVPg2kqvUPTVbcnncKJ3+GebRBzE3j5Hl9kS7JGV/ZfFWiYmNbWOiL6b59K/80Mr2v zBzLvKXi/NbRSg06zCY10eR2VVTxQO/zmuehiJru3chYkbK5Q1V9pKHHyeFQXGBUyIcI YigViVEfdxGpwSE1BFd4LUIypMxZIuYBa7tGbDbMHpdtSK4pn3/J2apqLg/M+JFOzz3M taNNMx7/+uWkt29+IuECzFBoczv1tNOK09EXt/kysuXePM0ZtsQPrbH5TWcFvsPQoT9d ERHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OutaHicx1472GLKvTK3Di6MPdFT8419t24QpYyasbfA=; b=Z6iH32ikasFEjFEKwsVCvh2OZhNJGuOXaQ86KHHwtYCoMSP3YNPIqMMyQ6cR8KxeEt gOLvlFyeyBvD1woo0liAggpmoV992AdM71oOa2gK4KIXPiTFu6cPE24uSUzFyLdqjDzw qai4ejGIvZwYcJis8NFfgr3mfuUF/dEiFUOIXK99eTSGjbwuhxIMkx5GTO5Qf1Z6w/XZ e/X2PUwm8TJb4R/JrTauKRl38kh6rzRVZe+lxwsFTvhMmo0S8oRtB95AKNyF0tbQU/o0 DzNpVs/X5BfM0CXiNksSV65P2BJit9BJ9Mq6dhgv31Jyv5vCBxt9Hl+THinjL7i4CJDY QsJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=OG+qwFKG; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si2458732ilu.146.2021.08.04.07.06.05; Wed, 04 Aug 2021 07:06:21 -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=@Nvidia.com header.s=selector2 header.b=OG+qwFKG; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238443AbhHDOFE (ORCPT + 99 others); Wed, 4 Aug 2021 10:05:04 -0400 Received: from mail-mw2nam10on2079.outbound.protection.outlook.com ([40.107.94.79]:44680 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237979AbhHDOFD (ORCPT ); Wed, 4 Aug 2021 10:05:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y43FUj1nye17suq7A2XOSs0VdL66KHDOkUB1z7fl/sl/K3M6rTjvL5NzFv2lgXE3mnExMiuzH9xXrYaNMjbVkMquxkp1MIelg3UqjLkzt1zQqJufSQLnBcNtdeTLM9aHynRFtSTlaAYyj/K21iw6kLMXXeYGttqxQ0GKONUYIlSCAcsuH+BPbpl2lTFA4/vQY5IE1JgsiD6mm9nEXUnlySEHDWGaP/VWYba48gZoQgVZMVBO8YjhlH118rGuW1cH/HlLMIKQBvoZzULKF6L0DfRfJritVysOiv1HJmwAOmfF4eOT1WsZyNv0ohqxKpvSSS4/1zgNwMhuciec0NdBtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OutaHicx1472GLKvTK3Di6MPdFT8419t24QpYyasbfA=; b=NDeq3778TtYd7bTNBOtjCQSMptPlvKSIpKvOwpUcrzlFvOYwtq39tB0Y48XcEiVuBaPCApV0ow+tsJuHoY7qik4QMGi8HBivcBK/kDovRhXw3Mrbein/7RnJtmpO6lnTHpYP/Qcucp2vnwN45QTmkOllYr9CyOYH/1KqjBBlEhKjqtEjDA4t2prCo4igLXaWD8WHo15jQDQwI9k9bBi3s1r1J18lOSTknC1O9BaKhVaUJspX1FYURuTRZP2uanIMse526s385KOlb5f8FRNlwtrFDQld5FE2ApofY8bVIxIffzfQ9wyoi+JM3qwsnVJtnE//OzzLqLZ4xkdevU2b9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OutaHicx1472GLKvTK3Di6MPdFT8419t24QpYyasbfA=; b=OG+qwFKGs9X60jek9NKTiBGO5bEbRkgjbPCuRunRcN/Qe/ryIe510/17ifZHHRgKgdlMnm70/eemh4Lts5QyFn0FitYnQ+XLHr0aoLsLr+YItN/oyUCbt+uFHCmZe8TYxHYT1G7UlEBS3HC/CnysxvIsMaIHjqETqhGa9yRwdjmkMkw16mMC/kTL3Hbq3qr879tf+5I1zJYsV51w3u2pWVEHNJhGoyJSs8BVpSC2bW/M+bFk43vHOyu721Jc8JUKohsDCZxjCXM2LZyLXPEo/3IuX3mzHbgH9sDs9lQWauErdOMNV53lf7tVZv11ofSAbgvMMhE2XDWrFDIuR1Zh+w== Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB5520.namprd12.prod.outlook.com (2603:10b6:5:208::9) by DM8PR12MB5494.namprd12.prod.outlook.com (2603:10b6:8:24::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Wed, 4 Aug 2021 14:04:49 +0000 Received: from DM6PR12MB5520.namprd12.prod.outlook.com ([fe80::81bc:3e01:d9e0:6c52]) by DM6PR12MB5520.namprd12.prod.outlook.com ([fe80::81bc:3e01:d9e0:6c52%9]) with mapi id 15.20.4394.016; Wed, 4 Aug 2021 14:04:49 +0000 Date: Wed, 4 Aug 2021 11:04:47 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: David Gibson , "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: <20210804140447.GH1721383@nvidia.com> References: <20210730145123.GW1721383@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: CH0PR03CA0100.namprd03.prod.outlook.com (2603:10b6:610:cd::15) To DM6PR12MB5520.namprd12.prod.outlook.com (2603:10b6:5:208::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (206.223.160.26) by CH0PR03CA0100.namprd03.prod.outlook.com (2603:10b6:610:cd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Wed, 4 Aug 2021 14:04:49 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mBHVn-00CbbP-U9; Wed, 04 Aug 2021 11:04:47 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9c68e38-6d63-4c24-c512-08d95750d2ab X-MS-TrafficTypeDiagnostic: DM8PR12MB5494: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gv7XxtdH8D9qIjlaSxwzwAW6Rzw+8+U5eLElvxuz7z6Jnl5ThQC/rx7vBg0Y4qLQz/CIhShz20sXq4mABYrxUQ4UYNI8YgVw5DbVQr+oS7xWG7DTgxLKly0w3yrFDzVuwFPitqMMQcUm8tHlaMe0zqfd0UmFPbuhXpwmdp1cVpi7kTZlpE2Hv3/ZUtGI9JQN16Gl4Q42dFbUgGE8uGBSa/TibGBI16ZvaOxDvfCdkEsr3I4myG2VUNmsS3XpQMhRMj7Sm7HMTqDQ7EecEvmXJ+1A0UPoB2ObYO4auSSazf+Vu80PKX91L457UUVpPn67PRUmwliHY0bLsZt8nKnVjavOF+ooFd3d5yFr2f1T4VM23HzsMKGcaBee9X4C0hdzYPjbY4RKghSmSrl1tyF2njx2naNDLz4wAWUEB1d9/QwveI+CgRlCW/94qH43MFNIZi7Fi4FZ6QNckUGzXSq38v66iiiB68+N7mKcGbx3kW1Ck3Gk4BAUdwIpd9gdhe8LwsrxaUqNMu8QVDS6fesdrnOvsMG9JEc8oichPQli8XKSKsN0uJjBYxzIQXShp7zXx6L4YRnBTqRlwuZ7TSFsvt/qZ/jdUQJioZf1dZmNto3OPsuVnGk21becYnl442WyaJzgNJvi1y2OKT/wUCpUMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB5520.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(396003)(39860400002)(376002)(136003)(8936002)(7416002)(36756003)(9786002)(86362001)(9746002)(66556008)(33656002)(4326008)(8676002)(38100700002)(66476007)(54906003)(66946007)(2906002)(5660300002)(2616005)(26005)(316002)(426003)(6916009)(4744005)(478600001)(1076003)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7pqhaeP1fKe9nNnCX1AJE9eXr8h5Dpc+rb1mUO6fBrT49Xo4zF5fqBgCc5T3?= =?us-ascii?Q?dE5A4aKfn8c+R1cIWE+pLpEE5oIP+4U5JJ04sd/KnhjOTjPC3J1YQ2DCKDGo?= =?us-ascii?Q?iRFls3n2H5z/GYmy35/NzyJHTS96Kg/br2UK8yXOHX8k9ig4AEgsJTZRpY3g?= =?us-ascii?Q?7XE1AHpdSGghmQqxyNpN16XuvFfXC97eRosRwLz7Cvrd6PjXE5YO+qZGq1dB?= =?us-ascii?Q?u489JQduvLrfrStfc6KRXwOMxiJr+ggO521M7Q035DptktakHcbBZJ2BtCtX?= =?us-ascii?Q?wZYgDnAAVGQndSTS3JgjTenvyoW9uWz4YZZ6Kt5xDIO7PukPm5sB9kStK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BgwuUQfknUipQFY7H6GZaYxNS728EDEcNH4Mmm?= =?us-ascii?Q?uf6uXSFjK+uBlDdytNgWYqwfyk0tW2hPGGUiT8Z5NfuCtJlKyH0p76zs+iaT?= =?us-ascii?Q?2g1XmfcKLDejFbKPjY/bWSP4?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9c68e38-6d63-4c24-c512-08d95750d2ab X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB5520.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2021 14:04:49.5338 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: arnZmJ0iZYMj/x87ECDahxzzjylihWu2ZposmrZA7NecZkQ/y44JGsN78JxkyovD X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5494 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 02:49:44AM +0000, Tian, Kevin wrote: > Can you elaborate? IMO the user only cares about the label (device cookie > plus optional vPASID) which is generated by itself when doing the attaching > call, and expects this virtual label being used in various spots (invalidation, > page fault, etc.). How the system labels the traffic (the physical RID or RID+ > PASID) should be completely invisible to userspace. 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. Jason