Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4050661rdb; Mon, 11 Dec 2023 07:34:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHE9oC1gesBCcP468ylPYTnCgm/hJjMVSQgrz/xd3riAeSIlG9fVRd4xPDuufArbNatAykX X-Received: by 2002:a17:90a:ab0a:b0:28a:9748:d7e6 with SMTP id m10-20020a17090aab0a00b0028a9748d7e6mr773991pjq.23.1702308879361; Mon, 11 Dec 2023 07:34:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702308879; cv=pass; d=google.com; s=arc-20160816; b=xPEp9t4cTKH457Pd871q6KgoSEA9lPDDGuv8U9Quy4OrD4l861YeH7S2MweQjQM6Q5 P23KRMSTNZbHe1Pz5oVdAgwUktk1Uwpky7oO2wX0VBYKMY+eJ9+mM9f/ojPfiVWoZrhO omuiTi0EpeC7FrgZc1krRk26lhUge8sYj9HEY6btWq4QAsgL1DlkGzXDtzH8LzxzNIdE l7qBL4YpQgB1rCk3jOr4lW/alw3S+BrtdAlbJjx2jGly2B9fxwDy49eNCKCC0DZBhV9U A4XW8qWpAVpJnEPu/4nqvXUgRzIWQInABv+p2+/2auGGVTQNQvgGUk68rQ08CKirrmgK jYwQ== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=gduGZK4qruis4UXamfXOvT9JJendFgOrKd+gjuCOQhg=; fh=TKu608ts9yLrNCXLrwsgmv5Qcxr5OG3vFCOfbpFeV9c=; b=uI2TowsaEdxW6JkTcPrYRXoIrEKz9EmC/ZfLdv/ByNE4OogpKyEQo+oK3V18PUTlUA N1AdaI2fvlJOVefMUceWMoQIVYVcIlV/px85eWvjDAhGxuDFNW8LT2nH+Ujj4Dv6LF3e +ozrKNQ4AxDYh+FTtbSE2e8rILev1+i+fVkhweQCXvth2O0Zo6A8XrLzjWPBKSgh7xt9 kPPFVIeOKOUZsFsdUlp+T7pKpm41nuIrvLLrAKOApA4ZeD01AX7QjVBdUr54K/6xUrEw 885MbbDEBt/MyjTUgt/8pMnXvvboqNHQPFViDaRtXxZpfE37uVUDWhB14IUuRDMQ8JQP aQqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=PRVsHv98; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id pg10-20020a17090b1e0a00b0028014e41ff7si6416280pjb.48.2023.12.11.07.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=PRVsHv98; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E604C804756B; Mon, 11 Dec 2023 07:34:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343918AbjLKPeU (ORCPT + 99 others); Mon, 11 Dec 2023 10:34:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343886AbjLKPeS (ORCPT ); Mon, 11 Dec 2023 10:34:18 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2054.outbound.protection.outlook.com [40.107.243.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44142E3; Mon, 11 Dec 2023 07:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RnqhSW4fRg+jd1hg7QaHy3N2olMP/52Cs1BTfVI7WCO4IHoLuNUUGL5JbldqOzfeKxk5gEVuCB52SyUhpsqe9VSpDTDiaEzKRdPrGn637Ro3+sDrj7bDEVozSa9R7Ae0iDxADjxPuHt4npUga8ntuRmEmeBuWXfERTC9zBmUqZTR+zwx/x7RJwJgUF7CcSiDmQL/rJafyjGOpMjTKtxZWKuO5t2Vv3Q7yFH4bjGcIrZf9J/T7mONTLrjEEYFyA5B/4w5yoDTiUQXV2vnjKxqmivt2d7MIHkcBtHxVLWHKzGLqLAZuokFMbmIO/BZ32VMMOs6bKMBuNW/0ckG0jhxnA== 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=gduGZK4qruis4UXamfXOvT9JJendFgOrKd+gjuCOQhg=; b=LaAsepq1W0Jo6nilw+z7+6OfQBFS0POKQ+SsYPXx6e04w0k8XKb5nqPzLLiWwwc1REypjzkSyIUMU/9frU2OZjYxWxLGClLl4S5YuDwX1WZZo8VZqhXM/3ipDpeHLcLS+eNkvcpg2v91qcGeXSfnDPGl4vo60NZJ1lAk51/7Diq2HbDMwbg+Okr9YrPbXJc1qrmCTzxJDNN1LbuLSuduKoeBivFiJmoRooNmXKK03MfBwQsFm34OGSP+K8l1FuqlyO8apnzuJB/bC3bILDwL59wM06VLHKlFMFJuJcxi5jdDP+mcBl45ModlDhTKXAeqwxevePZoO7K0S8Ll/y/G1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gduGZK4qruis4UXamfXOvT9JJendFgOrKd+gjuCOQhg=; b=PRVsHv984I6Ops6ohRg5L9NYiPW5Q+AohGAjltj5nxy8d0ZtPPHx/VUkv8aK1R/qGLyCwf5BLWUjTFusLhGK/nZTm3xE3Ra6H54n1o7NSweGF6qhm/OVsCBfKrpdBeOwF55RUByhmuNQEiQtrouTGukme2rdviTHFvs9gxWaln4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM8PR12MB5445.namprd12.prod.outlook.com (2603:10b6:8:24::7) by PH0PR12MB7079.namprd12.prod.outlook.com (2603:10b6:510:21d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Mon, 11 Dec 2023 15:34:21 +0000 Received: from DM8PR12MB5445.namprd12.prod.outlook.com ([fe80::e557:fd55:457:12]) by DM8PR12MB5445.namprd12.prod.outlook.com ([fe80::e557:fd55:457:12%4]) with mapi id 15.20.7068.031; Mon, 11 Dec 2023 15:34:21 +0000 Message-ID: <509489ce-0169-4021-ad56-a31544752aa4@amd.com> Date: Mon, 11 Dec 2023 22:34:09 +0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/6] iommufd: Add nesting infrastructure (part 2/2) Content-Language: en-US To: Jason Gunthorpe , Yi Liu Cc: "Tian, Kevin" , "Giani, Dhaval" , Vasant Hegde , "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" , "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" References: <20231117130717.19875-1-yi.l.liu@intel.com> <20231209014726.GA2945299@nvidia.com> <3e77a4a3-3be8-4e04-9435-1f66df93078d@intel.com> <20231211130555.GB2944114@nvidia.com> From: "Suthikulpanit, Suravee" In-Reply-To: <20231211130555.GB2944114@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI1PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:1f6::14) To DM8PR12MB5445.namprd12.prod.outlook.com (2603:10b6:8:24::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM8PR12MB5445:EE_|PH0PR12MB7079:EE_ X-MS-Office365-Filtering-Correlation-Id: b45c2f34-cfa2-4c37-e5ac-08dbfa5ea565 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tgPzp1LYX2ja30oJrkVbeIqjgLjr9IMfslzvSMf9w4QXxoYfzAw1c2t/SfKnH4TTHYOZ5A1zu8OolSQrYAGYdp+7/7h7AG3s49VG/MnFj8Is3UmtbSHM2dUejOyMs3Jedtsmg3vylhXn/HrjTsuMNPOQxj7PUk/BB1l4i28unMZ9aRxEzm1Qn/IASzvT6rYTocL7Ap0o4/rS+8pPkgPfAqfJTkeMggV42ED3Y8cHvXCGMPNW2OfmJ5Un5fLTe0oSPWv49zCBJyNOleYtkWI13ydNVGMWCVk7QFxBGMnhYT5g+hln5ExREB/PetnTp6hEPhfDdH9pH9oPt7RzsSu3k97iagml/wVY0UQoF7opciMgQluTe+DtnWW5LUl3Jf8PC0uSS5aaxKvTDn1G/OnO/8mi554YgowaQ5gAT5eWdQ6WnOIQGChPp3Ng70TrgMTftPf5Ipxwi09or5fXpVS5smoV8t1F+bRfb3FfNXFcWbaZiJK0VfvdvYXSyfBQpqYj1FlgipXgZlWYeoNoQTDG2kHRTMLnyJKtdrYKS8+e9opgJvHhgDj+z2W4K0kmDgf6euxh0pq0XWUUQmWI5tNFWfn2BLA+9zEUdIoZRzR65AFSVf1UlBu9i6ik9WcBW6myzNT+ZNmpV6rfjKeh5x3WhA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR12MB5445.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(136003)(376002)(396003)(346002)(366004)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(41300700001)(5660300002)(7416002)(2906002)(6512007)(53546011)(6506007)(2616005)(31686004)(6666004)(36756003)(478600001)(6486002)(38100700002)(83380400001)(8936002)(26005)(86362001)(8676002)(4326008)(66476007)(54906003)(66556008)(316002)(110136005)(66946007)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UTBLaWxCVS9taW12WGhmZHdkL0ExZHJkN1o4d3dGMzZ2cnRmOUt2dFpHYmJp?= =?utf-8?B?NUZkSmRU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SY2t1?= =?utf-8?B?SzcwQ3g5VWZuVlU2RVN3NE03VHlWMVRtWllVaTdpTTBxRnNsYitvS21HSHVV?= =?utf-8?B?VDJuVzVhRFNOZU1ITmZtUkRqd2k1MVFRU21YMURKY0RKRVBER1g3OVhNREYx?= =?utf-8?B?blhSdnZBRUt3dEY1ejlYaUU4MS9XaHhMZy9FYVgzMHdtZW9jNFlWbEtZcllR?= =?utf-8?B?Qm5KSU5mWmVtMnFqSXFTdEtBT3BzdVBpUmVrUlZOVkxOa0xOYjFqZFNjRDlB?= =?utf-8?Q?U4HW5KlvbSrlqn350mYupWAEw?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b45c2f34-cfa2-4c37-e5ac-08dbfa5ea565 X-MS-Exchange-CrossTenant-AuthSource: DM8PR12MB5445.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 15:34:21.5406 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SGP4n4hHRDt4C33QtzZ6OxrAmwPEbVsNo8Mb2IrS4fu10PPdM9mTMvo04coQo5oieFMoAK/N8CwZv8348Cnacw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7079 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 07:34:36 -0800 (PST) On 12/11/2023 8:05 PM, Jason Gunthorpe wrote: > On Mon, Dec 11, 2023 at 08:36:46PM +0800, Yi Liu wrote: >> On 2023/12/11 10:29, Tian, Kevin wrote: >>>> From: Jason Gunthorpe >>>> Sent: Saturday, December 9, 2023 9:47 AM >>>> >>>> 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? >> >> Perhaps due to only one DomainID in the DTE table indexed by BDF? Actually, >> the vDomainID will not be used to tag cache, the host DomainId would be >> used instead. @Jason? > > The DomainID comes from the DTE table which is indexed by the RID, and > the DTE entry points to the GCR3 table. So the VM certainly can setup > a DTE table with multiple entires having the same vDomainID but > pointing to different GCR3's. So the VMM has to do *something* with > this. > > Most likely this is not a useful thing to do. However what should the > VMM do when it sees this? Block a random DTE or push the duplication > down to real HW would be my options. I'd probably try to do the latter > just on the basis of better emulation. > > Jason For AMD, the hardware uses host DomainID (hDomainId) and PASID to tag the IOMMU TLB. The VM can setup vDomainID independently from device (RID) and hDomainID. The vDomainId->hDomainId mapping would be managed by the host IOMMU driver (since this is also needed by the HW when enabling the HW-vIOMMU support a.k.a virtual function). Currently, the AMD IOMMU driver allocates a DomainId per IOMMU group. One issue with this is when we have nested translation where we could end up with multiple devices (RIDs) sharing same PASID and the same hDomainID. For example: - Host view Device1 (RID 1) w/ hDomainId 1 Device2 (RID 2) w/ hDomainId 1 - Guest view Pass-through Device1 (vRID 3) w/ vDomainID A + PASID 0 Pass-through Device2 (vRID 4) w/ vDomainID B + PASID 0 We should be able to workaround this by changing the way we assign hDomainId to be per-device for VFIO pass-through devices although sharing the same v1 (stage-2) page table. This would look like. - Host view Device1 (RID 1) w/ hDomainId 1 Device2 (RID 2) w/ hDomainId 2 - Guest view Pass-through Device1 (vRID 3) w/ vDomainID A + PASID 0 Pass-through Device2 (vRID 4) w/ vDomainID B + PASID 0 This should avoid the IOMMU TLB conflict. However, the invalidation would need to be done for both DomainId 1 and 2 when updating the v1 (stage-2) page table. Thanks, Suravee