Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp642024rdh; Thu, 26 Oct 2023 11:29:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0A9IZmoL+IEN5vQQLCe1wgcXAU+yrD4KzCcdVsMvPNqWrCFGstvmMJZXGqrtclAWpR99/ X-Received: by 2002:a5b:88b:0:b0:da0:3c5a:e1bd with SMTP id e11-20020a5b088b000000b00da03c5ae1bdmr204421ybq.5.1698344964221; Thu, 26 Oct 2023 11:29:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698344964; cv=pass; d=google.com; s=arc-20160816; b=e0Obz8uuQsSxU/sHyCIiYABxpVNPXSoM75B9E7bDwT7WyIA0BtJHFDqgW9lbkU+tcv 99ncYeRF1wPBIFTUIHI7kZoyZ3YNlq2luFqVSK6zpLbamtv5ba6+/sRygZGifimvK310 CXf9EbrKhQNj1KC4FQq8ONXI//W1C9O15fuU+Adf7TlXqFoQRjs2ZtBeIV2xniZ/uwi0 ieE8IjTXJOkOPp4vmBrZOd3zRQGfyb/eZ2SYBA/uD1Z5MIZEIn5RURELN37u/Hu2g5to Zt7ZAiPkvbRheplX3UZRu1VDtPff1iyT5SJKdzNLJY3bhd6vQj/p3W5R6xpHXQXtSWrm 8w2g== 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=d/u7feCbaKbkc3BXs3vMIsw7zLVFKt5ceoFWFbibRzY=; fh=cN9KlbvGAn88myzcjvoPaWCCXJAYK7CwCXo2FFqQdOo=; b=QjV+pGpZwRiWlYokB60HaV1E1Rcggl5ZZJ5tQv0spZbjCSV1DXKOVcSpdpRcqRrbbJ VYmXNJwToZJByolb6cm1caeHpa0KfGp1Lo4DE5pmdoXmEor4euFlZxkv8vdftQGcoCKx lBRr8DFgcyR2pRauxYoP6IHKYZLWu/rpA+04YKZwP64kxCJzV3Mzlycm/blUvwAGSk2l NrAanDEdyYvWkjITH7gMOC4qy2P1SeGTkoYB1YlQU04wk1H51AUva+3wWblmEeErFSVb gsKLTSQ4820HMBwltMfUftwBpn/2XQYE+vVBJtvUqH4k1Dwry7Gz7jJJdY2GkgiF2QmX zsjA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=AmMJviwJ; 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 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id n187-20020a2540c4000000b00d9ca4ade54asi14619625yba.515.2023.10.26.11.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 11:29:24 -0700 (PDT) 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=@Nvidia.com header.s=selector2 header.b=AmMJviwJ; 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 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DA04F81B17E3; Thu, 26 Oct 2023 11:29:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbjJZS3D (ORCPT + 99 others); Thu, 26 Oct 2023 14:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbjJZS3B (ORCPT ); Thu, 26 Oct 2023 14:29:01 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2059.outbound.protection.outlook.com [40.107.223.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88FFB1A7; Thu, 26 Oct 2023 11:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VHqE+ec9uv+MTTJPfHhExm5UX8x+JGqMubpni24syFBMs67JRJkK1s399ooEIqLKZJH80Z4/tUatbrAzUQPtpDED83s+axZ0UZR0FzN+IyBgP21vMgr3B1ndZMTP+Lm/fWEayJq4hV6R+ehqv2cjLJHuKPIwywxxgqAkuIUiioUiIWNE98bVJUz9dmIfLttLo4uLE47GN8KUxmIyLGg9T5TaicbWD1+AQj4CcHJ8eTdbtsDl+iRpAUeeRQJI9KEwtJqyEW7NY7Lf+aMV+ceWqPw1qpXirMfOsZfNuL/m0sBZCCknzkQHFCspoZyBcc2WtgCR8lYvUybKBe+q4TYcsw== 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=d/u7feCbaKbkc3BXs3vMIsw7zLVFKt5ceoFWFbibRzY=; b=gITfRa6c0IkRQRt3Yqi7YgbT8sMqrMLk+R1xb5LcGg+T1Sh4OI6vnKdZazqD9ppiKYGHI1i6QeOhOvLltvCHtbzuFD260sc9htu9/9sUHs6vaiypeb1t+kegbPdehew06KyWjgcQB2SjcUdPKLi67TGsBcfY1upxICRgNuCT8329Js1h0CWm4Dt7ZO7grULXhminW7ttFT6SqMO/FlwelMNkwfE2uuFSc7Ec1Xm/GLk/ugrBDDUgNyoKzODgFgKzXdUWyLK1YzuX69xjYPQAgG8sX9YrAEpK8vuo2u1pwVP821pxr6t6seKzXpoNdzhWm0UwqBeMMqsqyonNZdLQJQ== 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=d/u7feCbaKbkc3BXs3vMIsw7zLVFKt5ceoFWFbibRzY=; b=AmMJviwJip7IJxH3JsNtv/oFbi3ghExHMrkj/9gM3NHMdGIMJf7m8cQEtf2rDQ5vLAyvLU6d88WBe4qP2MxtOHwUHCFU5Fpua+SVVn4c+6xwfFCu1kmNFQZZMQszXKDZ6XLYY7czPvRzvGkHVSTIHZmOvcvyXmjlxBMTVBgoZfLySE124kl6HGEYTESgFs9KSD6tMIRzCLI8Elq3/BbTiGoja3FaoRBqbXj9im5sPxkKT+Rab/HW4zcMMJfUblefGFjpqalMdLu6WfUL6GUTftJHV/GAFsPG9wzyaaMt36N/jkqHr88iFWqinEvXVV7AVSFHk8GyNxYxc0GjPDok5Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by SJ0PR12MB6832.namprd12.prod.outlook.com (2603:10b6:a03:47e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Thu, 26 Oct 2023 18:28:56 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::11a1:b0c7:7c88:9480]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::11a1:b0c7:7c88:9480%4]) with mapi id 15.20.6933.022; Thu, 26 Oct 2023 18:28:55 +0000 Date: Thu, 26 Oct 2023 15:28:53 -0300 From: Jason Gunthorpe To: Yi Liu Cc: joro@8bytes.org, alex.williamson@redhat.com, kevin.tian@intel.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, zhenzhong.duan@intel.com, joao.m.martins@oracle.com, xin.zeng@intel.com Subject: Re: [PATCH v8 0/8] Add Intel VT-d nested translation (part 1/2) Message-ID: <20231026182853.GS3952@nvidia.com> References: <20231026044216.64964-1-yi.l.liu@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231026044216.64964-1-yi.l.liu@intel.com> X-ClientProxiedBy: DM6PR12CA0019.namprd12.prod.outlook.com (2603:10b6:5:1c0::32) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|SJ0PR12MB6832:EE_ X-MS-Office365-Filtering-Correlation-Id: 63206796-a66e-47cc-38fe-08dbd6516965 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gQJUJHNILVY4mi7ECvPwWxatB9UIBCXENgXm/xVgBdI5ztnL+H0FY1yVPnTdR4m/Q9xh/xfqGsnAe/zu5UDOUHFaI+ctYFy1buRK0nDR7sI3/+bBNAy2bTlk5W+h63EYL0Ej+d/GxZhH5fvP9720iRz4/9x3rE6GC6WjXcno5QxH/rmeI2Lv5GYRakMt6YfZW84hatVyoxO/Po7cBH373B+2PQUUqQRl1UI/zeLmdNzDDgGzMVqAG3/WJDQrRU4luwETI+XkPKH14mfu+7pIIiXohR7XIwCTtMJ0P3l13u/k484OioHsRuH2W2gIyVZnNV/K/+o2fOD7m1NzKh9BZrVoN7N0jUwXQMoS+5wJ9+8uemBaY0l+lWYb3f8masRnJc442ib6JEOnIjJX2FepxgPYe5us7e/7KqdVrXC8hNOx4orKd+3x/U357/FelR9z5VXKlO00A+AOyyIgsrTYRQOrvD7gbginItiUM3Zkd5QyJ+MD6fp3m+sn9FzHdSDT3F8IncEqLzhn4bWkBwIJRAwmtjEDWnp4J3mvtvFRzyVJdcalax3/uhCQ3l9GM2KI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(39860400002)(366004)(376002)(396003)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(26005)(38100700002)(86362001)(2906002)(4744005)(66476007)(316002)(7416002)(33656002)(41300700001)(5660300002)(4326008)(8936002)(8676002)(36756003)(6506007)(2616005)(1076003)(6916009)(66556008)(478600001)(66946007)(83380400001)(6512007)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MNA2KsMtJAR209NTO1AdKRZA1oLq8KokYu1dIONZrT269iDzhREu/ok/2I1+?= =?us-ascii?Q?AnF8l068yb33t3YFeCokH3+/zMADQTwXYMBTWX5hvsPo7K46ahNVZivKytX9?= =?us-ascii?Q?4JCB8nXtrQc3ymsWPCGiyuX8LttLzxX+iELmIpxHcBxd/9gbgf3/9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kx60Y7+mG6H2VwO5TI+dQtW1NVfRp8V5ZsdY7s1sm6HhoKjm69ajdUe?= =?us-ascii?Q?heIeZepu7kHoyetYj7EO8oB546Ac1EmtHbEtHMEJvNjjq5hSRTbfPACRZpAp?= =?us-ascii?Q?1a3axloS99vREloDCIJxoSuPHC2xzQonS6nzLqB7IxJkQghxc5NbZxb/hB8f?= =?us-ascii?Q?gNePIT/XhtE/a3DhukptFOIz/pxAHTTuWHfX1lo8A8WnOW838MpHkbSfHHXX?= =?us-ascii?Q?DIDrvMNOFKFlBBlK04Ew+XJnU7wV/ujeGM9/ZlVxQJ2gtKZQ6EHcQLy91YYt?= =?us-ascii?Q?/ey+SsVgbKf3uNnOBxSdjnFR6WP5uxY45geG9AgkOBUCiRIMwBFnCzOEHzf4?= =?us-ascii?Q?k0ro8ogn4d/Wnyl3SqfZozZQliAnMb4MB2qCKM4v11CkaNP8OsxtkOI99LBB?= =?us-ascii?Q?ZBUSL4AnPz7zsXFF/vI9fxcGbfOs7GKW9BGKlO8CfDPdyHuSul8LVvQCf08j?= =?us-ascii?Q?Rwb470atBHOYs6NvOc+XFw1316IsAwWxV3yFOV5JBCQZ4938AGf/DWirkBX+?= =?us-ascii?Q?P9KnXGPE0igJ5Dg6k3k=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63206796-a66e-47cc-38fe-08dbd6516965 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2023 18:28:55.3220 (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: 8czxpLzb0P8CEslpzmC6FilidEnCLHNfvgu+UeofxNdQ3j6jdfAbASPV0DniljGp X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6832 X-Spam-Status: No, score=-0.8 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,URIBL_BLOCKED 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]); Thu, 26 Oct 2023 11:29:15 -0700 (PDT) On Wed, Oct 25, 2023 at 09:42:08PM -0700, Yi Liu wrote: > Lu Baolu (5): > iommu/vt-d: Extend dmar_domain to support nested domain > iommu/vt-d: Add helper for nested domain allocation > iommu/vt-d: Add helper to setup pasid nested translation > iommu/vt-d: Add nested domain allocation > iommu/vt-d: Disallow read-only mappings to nest parent domain > > Yi Liu (3): > iommufd: Add data structure for Intel VT-d stage-1 domain allocation > iommu/vt-d: Make domain attach helpers to be extern > iommu/vt-d: Set the nested domain to a device Updated, thanks Jason