Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp473136rdh; Thu, 26 Oct 2023 07:18:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFM/zPwXO/Benx0EFOPwxx/+oDApTiriBLHngjVxrRjyK0pPkX+HryUFxED3+9xQdUz3cCS X-Received: by 2002:a25:23cc:0:b0:d9d:1b00:252a with SMTP id j195-20020a2523cc000000b00d9d1b00252amr15232360ybj.2.1698329913861; Thu, 26 Oct 2023 07:18:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698329913; cv=pass; d=google.com; s=arc-20160816; b=weZ4ITEUygtmdC32QEJh/ELTRPneyY1WJ67KiTxe5qG4ln3Saf3hkg4z23eNAZI20V FrIrZHLJdsf2WrtmR5FVp3/SSJEFSbf8tVY/HrSD7AbsYcSz01HzYWDjkyZI09t1DaE8 Uyehpg/eJVfReQzIi3yhzsZRiZQ7Q4/z7rqSoY4/5k8WZ5wDo5iyD2BolvHs1kXhzeCr gVnN6XQMDccxYXu0TfkczxokH4w1mZ1GYCasiw9e0PsCaK4PIieT+9GmvWxUpltAM2Du orx3h2TTWiIyK7zusJSq6LqklarjSGS8mIyiGUZFC2q0uwjLIfZG+tDBwV7rAC3bLX9P SaMg== 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=g87BlNZ7IZC40yNAzTgy9pyNdOMKdAfW6/gnEIVl7Og=; fh=y0UKP5iU7vyBHKL35YjipjtYrMG+O0bjZEA10jLxErA=; b=0VrhItWjhYGKd2zcOl4YEbfqkjUe6fwcAhwZlRrkhGViSQUAWOxR0ygRawb4MmkpXV Xp6FQU5OCvL9izY909STO06HW8KjyYzr3edWVlCty8u5ZEk5wGL3WtHA3dctKXBV44HF S47yqHXgNSdhUFEDrh9Xw89b8s3PHXNgQsCnwvDAol7AIbObudauINcrWtcU3i73DFcw WtOPkFdQFZdevc4YtNGfRLbTdDIKMQIcOJGKjG1Nq4kvbKHTujpz52pgw+TgRYyh2GlX nGU54gDkkjE5Kqwnd35giQ9snJQxRgJbdBqyACtoDSE7vCTpP+0GYR1wNeMd3czfs1m+ kQ/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Xmt8zn4h; 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p5-20020a252905000000b00da04f22be85si7119297ybp.146.2023.10.26.07.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:18:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Xmt8zn4h; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 4ED6480F648B; Thu, 26 Oct 2023 07:18:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbjJZOSE (ORCPT + 99 others); Thu, 26 Oct 2023 10:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjJZOSD (ORCPT ); Thu, 26 Oct 2023 10:18:03 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2042.outbound.protection.outlook.com [40.107.244.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90ABA1A2; Thu, 26 Oct 2023 07:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bwLOge4LN6oCe0M+8u5Zggl0ZB+chJqz+Y87wKnbtYsFVlzbQlxEyJtDuNBVfy/TYYKRDzuuXzJr4gs3QbWIUsRhEw43KQu4L2+DyER+OvJeb1SjfonaFqP5lLiyTvBU2EACxm2dM4YG18zFPGwS/gXQ1t9Nff4vkR4t5ujaFQUc8oHF6RV0UCL+zb3YG3mg1L5NhVKqv9SC6NNYq3J1H9CiTmp07LhE3HF6sBkuPk0ucRRoWbB7DGx8vPBTGPmxlIhuGXN11nhReoM9al2b/BZOm8XiPw/WK4GaNfO4UsdG4yTx/xUu/il8DdITRhbFNeUYIOvoetnaUJra9wr/Wg== 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=g87BlNZ7IZC40yNAzTgy9pyNdOMKdAfW6/gnEIVl7Og=; b=Rh6G2XEACfxSkI8dCI+11Pj2nkRyU0MYYNOqSFSRkwiurZmP5nHdVXJaq7/L9EyDfbeaLal6nFYuAruubvCttmH5zP4djTrCyDg4rlEbhFQLDCc2W/21THMyohNInvvTwA1O4DLfwcuiXt3ay7JEQO36Tb6iH1/l0UUPP9IlBzhw0Cxg0ypPK3Er0a0dZ6ChrlC+yuzESdQVQPs5lvLI7KL7seC4mGpE0CLSRIVHblwGmt1sWn9M4Hxm7enGVCwdcDNi+ZNOwiMdwB1V2BwoOWXMdCfPEWVEmAmwzrC24nm/SAlNgEz7LI5ILN6XhfkR99TPu37zTW+dGxBzTog5EA== 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=g87BlNZ7IZC40yNAzTgy9pyNdOMKdAfW6/gnEIVl7Og=; b=Xmt8zn4hDqIA9imyZbGACMT1TXe5e3twZf6G/Iw+0cgW5oxf3Ajfk4tK8dAXHWnv3a3ShRF6F5Ax9/xicNzYKO9duizroTJw6pzEhgxUVrhgYglw/MB66Oc20TPJWgRnjjQYXl9e9skgsVI4yIaLVO+XO4wwbK2Hbh6yg1EaaeceLENF3MAnSXK2hUpR77vkPrQUh2envvT0j94eQDsk0PSbF0oXVs8EvoIRL8xWCJLALgEqf8wskZtstgEdMXBwOSWDezcBq+gzfhpAehJH9rOoNVT8UXK/Z6I10ZG5NOD9KNB5ZVNCXdMS/bev57Ei1G++J1bNK95D75DUdyCv4Q== 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 PH7PR12MB9202.namprd12.prod.outlook.com (2603:10b6:510:2ef::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Thu, 26 Oct 2023 14:17: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 14:17:56 +0000 Date: Thu, 26 Oct 2023 11:17:54 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: "Liu, Yi L" , "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" , "Martins, Joao" , "Zeng, Xin" Subject: Re: [PATCH v8 7/8] iommu/vt-d: Add nested domain allocation Message-ID: <20231026141754.GP3952@nvidia.com> References: <20231026044216.64964-1-yi.l.liu@intel.com> <20231026044216.64964-8-yi.l.liu@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: DM6PR07CA0048.namprd07.prod.outlook.com (2603:10b6:5:74::25) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|PH7PR12MB9202:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e7b71eb-5eff-4d12-ae5f-08dbd62e594a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j0qCfBgiyuxFNaiZREeL68APExRgxlfUYM5LAUdIomiO9t8pmRd+b+HbrGlAkNuR4BfV09a6AYOUPbiZ829Qq5+c3sU8VHXDSt3UsUYbqg1DluGzFFLPD4oynAFRJfmHOoP5qJTqtmrFyE6mRYqFk9nFDZb9dVupnuKbUbx1hG21L2spjA68iVQqL7QjeNTHVgn+0/aFP0h4d7QDFDWESbHbbfYk8i5bS16MYZJ5Cz/SsOhKSuSMi0Fz/Wyo1vS+KGiCvB9Q8EoWHAKYpTFxX62RE52mq+SNlWmPye3gOq95U43tSukXYsyIX/j0JFc2ehXvhoX/NCuZNymNPvFO2UXnEP2VNbxTtEyV+kNxBXu0fdJ7LUBgpu40PcRAQLMIZZOuZLsvlz3nfd/3l9RG7fThUshKwbj8+ame2gp659gXGtuKE2g8AwQEPp/fc9iENXG2YhVtUG18H5WvlUf+lPcZfrL5OvTl6uCyvoAEC3esKaWK07A0GhPqOAS0dzprhPcAomC2hPOXUnFNN5X5Wil/+vV362ix88WM6TpRGL4p4FwNu7hRIATvH1azyHvG 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)(366004)(136003)(396003)(346002)(39860400002)(376002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(36756003)(4744005)(316002)(2906002)(66476007)(26005)(41300700001)(33656002)(86362001)(6916009)(54906003)(5660300002)(66946007)(7416002)(8936002)(66556008)(8676002)(4326008)(478600001)(6506007)(38100700002)(6512007)(6486002)(2616005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ve7CGH0cKSQrLbFsTSzJBQ4KwpBlZx9aRFr1fIScuiGuHUGd4RywVRnqTX+5?= =?us-ascii?Q?8pALcCiNExMXM4/ojcRNWFcF9/+wiY4V/N6V81fDIvkrFAxgvdQoCBJdN5XM?= =?us-ascii?Q?Kwl+pWh8oCqKr22HjMK9hpNW24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pc0?= =?us-ascii?Q?wXx4qDfywHN971REDYMG+atFMfIxQ1ER+PZixcoEdcdeYBk7eb+Vegse34vH?= =?us-ascii?Q?ojzgowdLhemKUnttMBkOqk1BLORbYjh3qCVPz3yyX54lyXvexK2MPBJQXh8k?= =?us-ascii?Q?R4h/uW/ESS9FiHjvTu41m5CKMh7xxdh49VGL/nHE2dZkgAYs+uS6a/NkBO45?= =?us-ascii?Q?PzkyViGtFyf7rXCqcyBlXreLNkTYPSGL2FmmDCcfYSi+O3vSEgZGtxGe5Wc8?= =?us-ascii?Q?a7IWgJTlB2+A1xWfN3A9FgDhBsaj1Gc65EszmeMrSRd7MrhhxT9ytmAQM2R/?= =?us-ascii?Q?6wVIpJbAjOL/wZ7xzHl5ZtNyWoAK0sWXhb7jVRXQ9UYmvpptcnnER2RWT42+?= =?us-ascii?Q?mJfJM4b/1m83ENVC2tRLwY7az8hpGV/v6Z5AWzX2TYbkDriTPPJsAG9/iVoj?= =?us-ascii?Q?HSA77dDRXO+hh7eaFFWnPldiz5SWGhJY1b3jEmgGk5yI6itpG7rLBRoH6YLS?= =?us-ascii?Q?r6gHFjk5LMEIyhm6ERkPNAChDVHsWT/PGNFp38BbAbMcypp0o5uvE49qfD5O?= =?us-ascii?Q?PPgSI+R+SOUbL5AbVIU=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e7b71eb-5eff-4d12-ae5f-08dbd62e594a X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2023 14:17:56.4271 (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: jrg1ojHu6xLXNZ6ds12eZzb4LM1KjE7QNrUxXrWWOZ1YZu77Si/HUlK4lQXm2rIm X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9202 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 07:18:25 -0700 (PDT) On Thu, Oct 26, 2023 at 05:24:24AM +0000, Tian, Kevin wrote: > > From: Liu, Yi L > > Sent: Thursday, October 26, 2023 12:42 PM > > > > From: Lu Baolu > > > > This adds the support for IOMMU_HWPT_DATA_VTD_S1 type. And > > 'nested_parent' > > is added to mark the nested parent domain to sanitize the input parent > > domain. > > > > Signed-off-by: Lu Baolu > > Signed-off-by: Yi Liu > > Signed-off-by: Jason Gunthorpe > > I have given my r-b on this when replying to Jason's change in > last version. I fixed it Thanks, Jason