Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2382449rda; Wed, 25 Oct 2023 00:36:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGejDVIev0PoJ7MNfcvMOkMpoDPHAAleH2K5oOLKXyIVlI9BnJDnKiLwod3b86mfPGzBkMH X-Received: by 2002:a25:d7c4:0:b0:d9a:4d6f:1b27 with SMTP id o187-20020a25d7c4000000b00d9a4d6f1b27mr13749956ybg.10.1698219400389; Wed, 25 Oct 2023 00:36:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698219400; cv=pass; d=google.com; s=arc-20160816; b=ayp2p8/NKSJjZO4K4IJPuzZzoVUYYjsFptvnp/9ttlnYgE1IZA9RIIFWYryTxi2bE5 TCy26bf8p4kXkeVg8OuHEFJYOdhlqqE+l6xy3cDAi7Ano6Rz4PVRrDTfymsMaaZXayP2 +evkuHOQ7pzdft5Z2zUJrX0fCudyI/zLakr/RB4vqi4eA5YupkwEL69uBWLyKLixRkA5 6wDxexzcEJPonn5PUYAbXXULGZhHmqD56gE/6M8VSpT78K3hvrGaL4acWLcMddxhsizx AkSJDdCs9ljkZQPBNHqYTB+0fqnaudXl/xV83+IPhbHwgtdTMZD6v9Ag8JI+ki0e6gll xwwQ== 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=bilahOkRTBOU+xjyMWHPVnqwm9uAyVjF6FyzEX3EA3k=; fh=NJs+By7F+OCtKxIhRkrTy8jPqxAgjvI08wBBICMedF0=; b=05sPzrMGN9/+DvDrEOmxkdtd73FnofbYQgnHzf4Wyfwe+pXP2e3XK4/SCAnwui+JiJ apsuXWA0YDpHZ9Mi7CFrgA+xWYTrtIPxVXSbBHzMnJdXQjsy5uJkxUsAuYfs/kE4oc7X cNkzsAq1cSCYGvhbosmZLx4ZEk4TwbtlWgHgHVICZt1SssKzASEc0XKFzz9oXTfvMnDh 8eF5d1/HFSk6i/W0CQG1/o12bFlMoHB/SrBNCxG8c3OnuZrb3aZZvhMy5kjD249y4AiE Ojq2Yurk/Ca8AQG8mipNs+JFYWXLBY+IlS8rK/EcNtv9G3GZR0Q6ncV69OnA3EcJOceJ pt6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aPRGT21w; 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 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id r9-20020a056902154900b00d9a5a79b530si12023245ybu.673.2023.10.25.00.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aPRGT21w; 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 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 25724807617E; Wed, 25 Oct 2023 00:36:00 -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 S234068AbjJYHe7 (ORCPT + 99 others); Wed, 25 Oct 2023 03:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232800AbjJYHeB (ORCPT ); Wed, 25 Oct 2023 03:34:01 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC13810E3; Wed, 25 Oct 2023 00:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698219203; x=1729755203; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bilahOkRTBOU+xjyMWHPVnqwm9uAyVjF6FyzEX3EA3k=; b=aPRGT21wV8Ygqlgodwj2oPb4p2h/ecc2HcECE+AN/z53YKqqVZMKxfJZ g938JOsWiquUTvBCURlysD5ZsglJ8QWGMvXfl7GWJm7gz7vnvR4yoPHZY S9FA2sLWcg0d5Qna+V/yEBaEa956rV79iWljHXvqXJ1n4p2SARuzd1WoX yfNjpYhAtE3W68pgOf+fSFG1s7jsGLcYitGLqW1jSUCVC8PwK1cfDUvCg zYSTOhAhN4xQin20TSlndxkTnfiY9XlEpGwVs0u7ahHsB0EnG0rlzQfTN j++ZDWqwLibwUkKowLS7KUuHYWmwBH7p85JopUaInNwK2te7DN5ydOyKD w==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="384465461" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="384465461" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 00:33:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="824570933" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="824570933" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Oct 2023 00:33:16 -0700 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.32; Wed, 25 Oct 2023 00:33:15 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.34 via Frontend Transport; Wed, 25 Oct 2023 00:33:15 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Wed, 25 Oct 2023 00:33:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ewh8WE/LSat20puGKmfSEWbMAOTnJHNN/f/o9Ai77AmtLjovgspPHhk1GH9bas7dL1+w0N4UFObVGgqc6s7VBO6ln50RhfXpB0I11VL7xZUGB1JGtElTDfuXJXSU1Iaa5w5fiDYSXPdZksvnCg9VpBSGFfILExJ8AXarIgYyRhO0ZLle5KACaZ1ajbsmi/Ki1+Q7U0+3WRxZwbc7i2RqV3pHww45HXDHb4CMHpWPM5D0+NEF4UD4DpyY+nY++ZsVIHX/IcAq2RtjFjZ7UG6RDXJ0dIjg52iLQpz2dtmAiIiOsY76GWS9F78UqZgBSq3n3xcHlfmQYiTYe8zsD5cgHA== 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=bilahOkRTBOU+xjyMWHPVnqwm9uAyVjF6FyzEX3EA3k=; b=HyfPPZzSxdDsT9HqXKoD8lJbRsyL0dO9l4xSGdbEMWvaj508gdF+TszhJR6hW5SfhFSNg0/Nia4mOdQ1I4UIJdq3oLhhvPNBfLemGBDXSANdmr8991FYusLNGV2XCMDArXMeftN7YbtnpxWTgl+0ZxP1mOglEM74zbGj26MEOQVGUjyKsY/Nc5ECh+OrPN+GlxZtgyh5YNt3BPTWMFWM16w9enwTQ4j+DULEHRKFd7bBTxndY0LOflxaY9IrSlhSrn0ejLpqg1VfaXM/U1oV494GoC+embTtINW2rwY+GCokv12llfOqy6o8Wiv04oy4sftDfFAwt9mtvJhRpNVmdA== 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 DS7PR11MB7740.namprd11.prod.outlook.com (2603:10b6:8:e0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Wed, 25 Oct 2023 07:33:13 +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.6907.032; Wed, 25 Oct 2023 07:33:12 +0000 From: "Tian, Kevin" To: "Liu, Yi L" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "jgg@nvidia.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" CC: "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" , Jacob Pan Subject: RE: [PATCH v7 6/8] iommu/vt-d: Set the nested domain to a device Thread-Topic: [PATCH v7 6/8] iommu/vt-d: Set the nested domain to a device Thread-Index: AQHaBozME24rKKicg0u9N4JqTWFPqbBaHdAg Date: Wed, 25 Oct 2023 07:33:12 +0000 Message-ID: References: <20231024151412.50046-1-yi.l.liu@intel.com> <20231024151412.50046-7-yi.l.liu@intel.com> In-Reply-To: <20231024151412.50046-7-yi.l.liu@intel.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_|DS7PR11MB7740:EE_ x-ms-office365-filtering-correlation-id: faa6a9d4-a73c-47da-06a9-08dbd52ca52f x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HRUtZZMx27y/B3MurJHsIw2Nk+153NUhyYsHqFwQVuJ1Gs/XXxspU/74cuPzJclYgUW7saaTn9SKHqYxTbK6Rl5c/Js8oKYQVYvguNmrrTb/wZkSNJiNT9UfyUzA/cpdOqyGvXTnpB3w3JLMeZ1KNzp+WLE5FXpTHsoGf7e+3NCx7XSRWZFn+rkqHAkZ9LuPUE8sjasmQ2wsuWjonPuQPxatHtmltHuS2tXBH1SOXfSQdKT6CDY8vqKsbthED1jdFBve4+YIegIGQYVZuSlelCzk+LDkW4E68n13A8T53b6dcNUzvlS1qQZWA0kzQEIBVVJHkK5c7naJEuTtvVlJIV+ULfhylCj3ChUMVcJ0vxjg++GO6cN8OAAm5FwpRMSDWWKEBIjUMWVtAtQCA3MKZAyKKng6D86mdtVuWfBOl3ZXwEWJC5c/iYmftSvhhJUV2N7Qj52io/5RH9lSmCO+UbOYHiXG70mx0F8StFip0Yvs4/5KF1P/j2uphkxrexeMnh/Mcl3vP/K+OZy+JNjVzBzFuMlo+U28lzg9Ode84GiylLJDMxe+QCV1uh6rreTyGbSFzUmSuRFJehEAdNwL0gkBCOeCHvCHab4fBkiEXOJBjyv8wzsGlcG23IkEpv6R 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)(136003)(376002)(39860400002)(366004)(396003)(346002)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(110136005)(26005)(478600001)(76116006)(86362001)(6506007)(316002)(7696005)(54906003)(64756008)(66476007)(66446008)(66946007)(66556008)(38100700002)(38070700009)(33656002)(558084003)(52536014)(2906002)(8676002)(122000001)(71200400001)(7416002)(4326008)(8936002)(82960400001)(5660300002)(41300700001)(55016003)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eZWU2IpyYFSrb6IyqNttUBySRClJ1SNhto0w6V5phVOmtfyfdEtEaj6XWZEO?= =?us-ascii?Q?SeomIopexpt64Ujjp6gZPE5/ePVr8MBQ/G6nLKQ6Ynv17Dp+CA+RZ5DAJLJr?= =?us-ascii?Q?yhyc0033ZFBhfo+0iNa8sr9gE739YWT6jznmx1l8r7iGtDb+URQI58fNtKmx?= =?us-ascii?Q?TjyOrLvKTnyH+f7MlOl69txeneZfUASU3nkqttvZNXIRNACSah5fo9+UNqQF?= =?us-ascii?Q?Ru/qriijJsf5xDS3e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?= =?us-ascii?Q?yQpUg0olBbY0k8two84tYcAKYk2/8ALxSChh873qARGPDoYfY4c/pdgSVf5r?= =?us-ascii?Q?ddh9mQmpv0e1UHOu/SBDRNIbMEOFZPck/5QBYsfJgsf8Spy5Ap3vXy/5CKKi?= =?us-ascii?Q?yLjmAA8woTuKAdenVNqYeNEiLYdWbU1LJgaJac6ZLXONxTp8GHGGEggqa53S?= =?us-ascii?Q?29rDaZ+8NeUCvRTV1S7uOLHzgzuMZOwJB+nNiB8uDtVWuMfrtcDUQRpnryLo?= =?us-ascii?Q?/JAna4eGhXWcxKHlE8y2bnMdVtwByX0sHHgFe6He75i6RQgoWArNLkSqi+pD?= =?us-ascii?Q?qcbgKxv7V7vmAsSVLbyV2cDk2I450U3yNXfPApoWKjEBrZbLQDzBbDbaJEDO?= =?us-ascii?Q?BIdeTO+CTlRjgM4sYI206tLIOV0BDhhNak/68yodP3+gHpmUeG4Ro6ra1VqU?= =?us-ascii?Q?vjhUyJ9jVihk7Alk9ck8tIpsTFZAS8Zc+U+2mib+?= 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: faa6a9d4-a73c-47da-06a9-08dbd52ca52f X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2023 07:33:12.9290 (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: A18Oylh+HzX5wvY2kNc98eXMs7PCMsC3QRxpHwyz9HlB/exobYDsle1SJ4sz+b9l/jaIti+sbBV/9RPCre1YxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB7740 X-OriginatorOrg: intel.com 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 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]); Wed, 25 Oct 2023 00:36:01 -0700 (PDT) > From: Liu, Yi L > Sent: Tuesday, October 24, 2023 11:14 PM >=20 > This adds the helper for setting the nested domain to a device hence > enable nested domain usage on Intel VT-d. >=20 > Signed-off-by: Jacob Pan > Signed-off-by: Lu Baolu > Signed-off-by: Yi Liu Reviewed-by: Kevin Tian