Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3715668rdb; Sun, 10 Dec 2023 18:30:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8hvBUBMpo6bZh0i2m+GL9UoeiX1gsd8JBNkx0Ai8sL4xDqL0QKVZs3+8tjU0YhA8gRcFO X-Received: by 2002:a05:6870:b48e:b0:1fb:75a:de4e with SMTP id y14-20020a056870b48e00b001fb075ade4emr4755947oap.60.1702261819401; Sun, 10 Dec 2023 18:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702261819; cv=pass; d=google.com; s=arc-20160816; b=xUCK4YkjWQ8TuOGdpoUqUbN3pdYgDiBP1M+eOUecP7dw6UdjpfVj+Quu1onUw8hS4B FQuSasYujt/cQnEO42jiZU6A9SHUkxJOQO5fw5am+2eZUYFYHaeF/pSkH3XlJ/FtR5HE GD7Jk89zNkGJdM/pHgBPivuu1flnKsQYS2Yb2REbOEhfDxZaaF9d0UTqd/eikCn8ORTC w5PImGVAyFU2giDQVQbByru0DmajtuKDfq0+7dg855Rxog/00bfh3cMp1o2p2XDPSUfW khN3U3ZeKincTtH9mEYVL2uo+eGpcIpDR+g2L0+wvvsdwMqbCelEkvQByQEbhBRDrOj+ N+bA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=rddNAA6n51KKJk1Y9oJeU75OSc97YWVa2CocOkbiHyU=; fh=ABoAB75N9NtlzttELGARWaM8qSzaEgXeSnIsyVUvRgI=; b=e5l+NzeaLadp8cWoKYexcOWu6XrhBaob09L7VjTQ9e0KrVIIaLAHNvPq2LwAwLLnOO nHXRrS0UhPSxaQpi9GLGrnWo+Ht+cx+ohLbh7p1yB3pherDTcOEdG4MdvkoX2StYXlQ+ SzPW/cXTf2/qFX/KuiqOiKLGMSTqxE3ah8WEvkl4lDQq67fCqtcfY+KE6CP/O4vB7xBl 9z3Q8yY+umX8R+qpnZ5Um1gU/YvjCiBkn2QCoyRDe94AIi3WCZ4ORjTGRy7spPSPGKdK 4fiGJJAqwPawx/yswtxr+MVHwLLy8E1vwwKdSAKjpb6x67PH9h8ua0aWQRg6AS/DZ1BP swhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WnYdcjE1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b23-20020a656697000000b005c65f10c20bsi5291066pgw.288.2023.12.10.18.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 18:30:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WnYdcjE1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 998898092DAC; Sun, 10 Dec 2023 18:30:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbjLKCaI (ORCPT + 99 others); Sun, 10 Dec 2023 21:30:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjLKCaG (ORCPT ); Sun, 10 Dec 2023 21:30:06 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF4390; Sun, 10 Dec 2023 18:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702261812; x=1733797812; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=hJLxE9ua4sukd89jxifKYz0r5650TeqBYFF2rmN/TX4=; b=WnYdcjE1pK0lbLSls+07tLav2jP/50JCV2nPXHmk/58Qb5WaRNsu24Lp e4V5ESe+JJn70r0bSzLlGlriNSQicTpmqtv8yVYcmONTB57/zXTCDz0Li 19KWVyKTqJd8jq3YdTKVI41QVKqnSedaiNdWQA8hDdiM+AqWxvyxYZd7K EHFxnBUVm0dDJtWICjdLxJ4lE2tgs9ebzbbJKAiiljTeeLVsoyDS6Jpck DWDDN6sKKQmksTu40yT8zE5aHPbFxJhAtSfck7YoY2WEo+P5vtna98qYw euxwwQ2R9zvIijiTnfO0Uvc0/av6qDNZTDsFOtmejXw4DjeZhrtiAwfo4 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="393447990" X-IronPort-AV: E=Sophos;i="6.04,266,1695711600"; d="scan'208";a="393447990" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2023 18:30:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10920"; a="766189340" X-IronPort-AV: E=Sophos;i="6.04,266,1695711600"; d="scan'208";a="766189340" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Dec 2023 18:30:11 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 10 Dec 2023 18:30:05 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 10 Dec 2023 18:30:04 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Sun, 10 Dec 2023 18:30:04 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sun, 10 Dec 2023 18:30:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F3+oHHy+g7z/tumBmaN16WcHaQi11BoGjwex88xQaYtpn1cKHbzk5GoPTLmVK6DmS7QO+tIwLQRk0AWFVddmLcqbXBxF1NrxE7GnGrCwcIidQHItMfh/zprTUd7p9FQZEz1nuHr7yzzSv7pYwytRgeEMtJsRA1m8M6om5LDl/MVycVGtzM0UTU/scQBOLOr6gnr2w8OcTODYSvqhQ8EHX6bSs/WO6WY42zuHlx8dpPccbFsqwDZItjhpkuthhIP3CY94Cl/LIOrCN7Zv7EMPwxh+QO1tCS4hdX5ea43HCxe693dXdWmlGNX76imjdLkCAuoBjGpDi0KUIgLLLFEDCw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rddNAA6n51KKJk1Y9oJeU75OSc97YWVa2CocOkbiHyU=; b=Y4lu/DUIXAWr7n9lIpmM373xI1T2Nq2LXNYo9PzfL7wVl6lIfwDOAei8O7Leq1ioRyltiB/lRYQHWzf3UVMAVed9rIJ0w3plWWfOtUUiDni/9YdWOedx8DRkUq4/7AP+ZUvCHlzzMDZVjF7nVzQfzExZq0CzGL85r3WaHVSLZBDtWGpJed9GUlrlQF3w0Wixi9im61vmKDuew9FEavb1TBqRC8U+s6a7HURxyPatAdz6MTOO+r8tYjMWR4YqDza3blGXXWW+ab9JOgMLNNNm/5cfAPN7lRC2Me78D73XmHz7FgIFisvd9EHGSzrZuNiWgicx5KZffKCUDX4d8eoXFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by SA3PR11MB7485.namprd11.prod.outlook.com (2603:10b6:806:31c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 02:29:57 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::e7a4:a757:2f2e:f96a]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::e7a4:a757:2f2e:f96a%3]) with mapi id 15.20.7068.031; Mon, 11 Dec 2023 02:29:56 +0000 From: "Tian, Kevin" To: Jason Gunthorpe , "Liu, Yi L" , "Giani, Dhaval" , Vasant Hegde , Suravee Suthikulpanit CC: "joro@8bytes.org" , "alex.williamson@redhat.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" , "cohuck@redhat.com" , "eric.auger@redhat.com" , "nicolinc@nvidia.com" , "kvm@vger.kernel.org" , "mjrosato@linux.ibm.com" , "chao.p.peng@linux.intel.com" , "yi.y.sun@linux.intel.com" , "peterx@redhat.com" , "jasowang@redhat.com" , "shameerali.kolothum.thodi@huawei.com" , "lulu@redhat.com" , "suravee.suthikulpanit@amd.com" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "Duan, Zhenzhong" , "joao.m.martins@oracle.com" , "Zeng, Xin" , "Zhao, Yan Y" Subject: RE: [PATCH v6 0/6] iommufd: Add nesting infrastructure (part 2/2) Thread-Topic: [PATCH v6 0/6] iommufd: Add nesting infrastructure (part 2/2) Thread-Index: AQHaGVcGB9517zktWkq6XlvDSMgylbCgUKQAgAMup4A= Date: Mon, 11 Dec 2023 02:29:55 +0000 Message-ID: References: <20231117130717.19875-1-yi.l.liu@intel.com> <20231209014726.GA2945299@nvidia.com> In-Reply-To: <20231209014726.GA2945299@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|SA3PR11MB7485:EE_ x-ms-office365-filtering-correlation-id: e4dbc62f-fe5f-49c6-82ea-08dbf9f1104e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IvSsszgN5HUHsgSampEMthvqcl+mMpIEz+YE6/Uj1fCjFIQsf7Nq5FFiNmKyWhn80shm4KxvfZKZqM0DTV+Wk4xl2wJby2YiqdXdJNLl88ADm449GKz+o+tS8Y9CYilDOrqs9SqK4trcZaI/FewqgbdmQLFb8AoSt9S1z/mpgzCoy86D9Iv8OZb1ZUrs376ccIFLvI6e+mqLrQxvaM0I027bifMVb0CtpWLD02g2Lbca7544WxhYf1LB1RHPLV5DfqRpmqZ5gh5A+9w+P+Yqv/AlCEYClxmOQ+0wF9kN2NR9TDhS07Q8nQjYpO0vKiWo0uZEvmHhNAvHqSrECtsQlCHxPuI+KrIXxfd2c2fa+9+I0gf10gzXvC9884WOYCvArvHm1E6R0YSc6hXOsRlj55uuz/sy+rWYAKokGRzizJGy7qwJA68qGnl69boN2Wy339oTSgtCpHt/kEPJGyffWwuZ7hyVR2IUceFMj5vMhxUQkwNGxr3v4ZP63Av44jRBuCnpXGXUPMidY4nnbaTQCXVNAJJBGM78OyMlZr+Eo6TQl06UUoVRsKKOgUDMkfSOtHldofVbJhwgBbZ/Oo7Pnc8N501QIj8FdDVQeyiIjk4tIFVUdOTGxHeeipv1J0zz x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(136003)(346002)(396003)(366004)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(41300700001)(26005)(82960400001)(38070700009)(33656002)(86362001)(38100700002)(122000001)(5660300002)(316002)(8936002)(4326008)(8676002)(52536014)(7416002)(4744005)(2906002)(7696005)(6506007)(9686003)(71200400001)(66946007)(66556008)(66476007)(66446008)(64756008)(54906003)(76116006)(110136005)(478600001)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NT/LxjK0Idknn0MJYd88eGyizDtcquQVRkA4OUjDBBM0xPycWrpDkThcGOv5?= =?us-ascii?Q?fcSDsGVjiWhujk09JHzblaGkbcdKKFSrjys/ldOAEbfEC5dM3igWd2cekp9G?= =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skomLepgm2GeNqOZy7uPLjP09j/?= =?us-ascii?Q?Bh4AFf04nnpftIyK5wPftPxLofdxDuhpkd7VciVUnAm5TkswRdmjFfhYiQRr?= =?us-ascii?Q?FaVgZNuh9ZmekdXUZ0b7MtpQ0nArojy6umaMt81lWQjDBi9QspFZcGosxSA6?= =?us-ascii?Q?GPbzlGRyeKD5MdzviBF/H9bB6j7ocf/LIUjSRRsUieETRxsG1NEdogaLzR6b?= =?us-ascii?Q?KA090bg1Ztq1U1p9S9+Hz3JECqk+Maik6uSexbRCN8sxORahaEPfeQbXlH/N?= =?us-ascii?Q?qmkkk3gwJ0q/dt/2QyfvU7+rBkscERiIEIJ3kQ6AR4wclI2mcpwheA9w661S?= =?us-ascii?Q?75IbycPebzuQO5FsjBHWqqoKyx1bl+A8dpKskCi5YqIIwMR3XRxzMpwukt95?= =?us-ascii?Q?cVdf5OYHv+Y4uEYETjPzSSKVLmQBZSnixLJbGsE8TKUgCpN6PD36D0zqtNPS?= =?us-ascii?Q?JE8G/rs+pgIAuca6pGp0deOyLn8JwQUGvPK0Tl6hR4YbnkTmM5Mz6N3Ubjgf?= =?us-ascii?Q?3vUXyNfgZ50hKBNOPM8zpLuRGO788dKPinp31ZXJQK4YYYAAY+g+d6OP2gbx?= =?us-ascii?Q?RJQlVYddhe/ijlAjXuYOZmxRL6BB+lTf8JPw+nLB?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4dbc62f-fe5f-49c6-82ea-08dbf9f1104e X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2023 02:29:55.8723 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yVhxBFfSUtvPPofFRMlilgdgNxjt5b6MYq3dFtTkai+Fs7BHTAVBiVELkv9LybQidI14rMkjKH/NnHDb1tNX+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7485 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 10 Dec 2023 18:30:17 -0800 (PST) > From: Jason Gunthorpe > Sent: Saturday, December 9, 2023 9:47 AM >=20 > What is in a Nested domain: > Intel: A single IO page table refereed to by a PASID entry > Each vDomain-ID,PASID allocates a unique nesting domain > AMD: A GCR3 table pointer > Nesting domains are created for every unique GCR3 pointer. > vDomain-ID can possibly refer to multiple Nesting domains :( > ARM: A CD table pointer > Nesting domains are created for every unique CD table top pointer. this AMD/ARM difference is not very clear to me. How could a vDomain-ID refer to multiple GCR3 pointers? Wouldn't it lead to cache tag conflict when a same PASID entry in multiple GCR3 tables points to different I/O page tables?