From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.8157.1647331079396247297 for ; Tue, 15 Mar 2022 00:57:59 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=N82J3uUC; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647331079; x=1678867079; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kRF+eGfNlB+6EHySFe3mSwSTOBu90tvhkfdhe6u/TuQ=; b=N82J3uUCaM9Cez2x+NYEGn6Q7K4+QOujpK4lpKv2KEn7HGclUtRBTXhS wRylWH9xE+7U5qzGEaXkA/vb3sBdrZ4u+tgx6323fPPbeVNXBKgqhS1JG cd1SGl6BNVJk29Q6ioq8oygHgG5D1RtmkVS0nGCD3eVfwgBGxrlazl51h hxtzK0Xw/MQaC7nJPOhAgkCcRV6mNMoOhn4E5au1pnUSq2ScMYqX1pkNl ZIoKEv9ctRKKgbMagWfnO4eTS1TP38nZFx3ZQBZcBdJgqVsOorrDIhbf/ uIUz5PDLhxDQOVSufWXGmZ9DnE23WkFwDbttRJ4rN3mYty3KdfEyCnUhv g==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="238406606" X-IronPort-AV: E=Sophos;i="5.90,182,1643702400"; d="scan'208";a="238406606" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 00:57:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,182,1643702400"; d="scan'208";a="497925618" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP; 15 Mar 2022 00:57:58 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Mar 2022 00:57:57 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Tue, 15 Mar 2022 00:57:57 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.43) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Tue, 15 Mar 2022 00:57:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBRF3A4QugiSPwBohjoXvasOgsOdMzIkMAeJ1D07nP+srbEExrhLuZJKcJtO0PFrF3YCKyki8jPkGvhY69h7+Sr4gAiRn4YB6gnd4ub5Iyny7xv38TnX+1t20W7g31pxE/UuocpOv0CJrNH71sN76CYBD0AHG7UoiR9AU2onInR4gIW/CAUtA8KwOAnrvYAAFco4spZKoQttB8sasg7PGDSaQLX3avlJd5+lO8J2ZUCt+er7jizPAJ5vsClEsy0JgrRHVauoBE12Nf37QhDOHT+6uIoNFqlHDV2FPYqYJoSxbMRurw8NB3eyA7dTMr4tA25s2e4XvQhB1CqW2dk1Yw== 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=kRF+eGfNlB+6EHySFe3mSwSTOBu90tvhkfdhe6u/TuQ=; b=gRxfQ/+8XBldI1aSa7f2ZoY7bYC2G/UBg4sN/NAyBdxwt7B0pg6rW2PzWsNs+qirzM1owQSj5QJ8oJxR7TEaXbZmDrhhQfPUkyfKi2UFffNchP1F4lzFDL4L6YN3j9wpoZnM/DlnsWpu8yqhTaPVstpms0N5s7GMePf1HPy4W83Y+MB6Ocj8FXCPtSGr+P7d/naZDwUhaPyFk9qCs+T3sNBmQIL/48o8C2D+mz5Ux5Np/+r9xA0MRN5XABpEbecVdscWPJeZy8Rcw5dYJC+P3GaCdHTmFcQiT41qNT3Yxf94Tb1XNeZTlFc21O1siX8RaUtQEC+yqdf+yZcMgvJnJQ== 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 MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by DM6PR11MB4707.namprd11.prod.outlook.com (2603:10b6:5:2a6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Tue, 15 Mar 2022 07:57:55 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::99b6:d326:2925:4d2f]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::99b6:d326:2925:4d2f%3]) with mapi id 15.20.5061.028; Tue, 15 Mar 2022 07:57:55 +0000 From: "Ni, Ray" To: "Xu, Min M" , "devel@edk2.groups.io" CC: Brijesh Singh , "Aktas, Erdem" , James Bottomley , "Yao, Jiewen" , Tom Lendacky , "Dong, Eric" , "Kumar, Rahul1" , "Gerd Hoffmann" Subject: Re: [PATCH V8 13/47] UefiCpuPkg: Enable Tdx support in MpInitLib Thread-Topic: [PATCH V8 13/47] UefiCpuPkg: Enable Tdx support in MpInitLib Thread-Index: AQHYNbRAZyuGRGvzEki5gUg4RZQu4KzAFyHg Date: Tue, 15 Mar 2022 07:57:55 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1b168be2-bad2-4024-28b9-08da06598384 x-ms-traffictypediagnostic: DM6PR11MB4707:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kkRnueypOA1iBEHf1vNlZB+TIWd0WzZwBL+Qw5usabBjEaXw7QuRVGAmLbVNqdwwuohykcVHh1dZ08YLrGMFAAJEbEi14EPmjTqwjkB1Noah7DgIKGJ0jmYocj9PMEdkxlB0IJ5Et9IWSrBEDmyxr8FKgXzzcOulc+D/jDJlU6kbx0NPxjLP9i9rfBsH+itsmzynBZAaelZzYMJMt7ntnwQSRe+veVgoq+oQwsIfNp+ERbyaDuz6VrYpT3FhVJDI2/QV89SdX20MZZNscxrRcrbrS1AZx9IDJTbdirxkSB01CWxjbRMzrCBqquTqQeiKJfFz1nCrDbUs/2PBpNdutFM/gLmYaXoOBD4ZDAxt2a0haf+dMVUzAilKr9E7XC7CEsBsUmwmnLV0xZYqSjPok2jxzVn6Gxp465lBZvtk4+wTeNFbraZ6RRjvudo1gP16XbtO2PFsZSTY5oWiutJeEAtl5d5joSqfW2v4+jKxRqysNU5+5XM+qjlxv0bbt4BKCcfZpfznaAaFzmWQQIgFZI5sG59V2UQZnUl7sE7HC+j4tg3uyoyUsUPKApdHCjlEXl5V08mfEHsrjs7VVbnziMOYKESfx2Cl+Kaq28IW9aQljEkmrZW2TR9KYVC8A294/8ySeAyRUzfVWf6jlEQ4nrD3EtKNFoZuOIES5986jsaWtbh5Rv8AIakXUuymHTu3G9H006ukkc52As7OoBDIvw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(6029001)(366004)(2906002)(110136005)(55016003)(54906003)(508600001)(316002)(6506007)(52536014)(7696005)(38100700002)(8936002)(38070700005)(9686003)(5660300002)(33656002)(71200400001)(122000001)(86362001)(26005)(186003)(82960400001)(66946007)(64756008)(66556008)(66476007)(66446008)(76116006)(4326008)(8676002)(4744005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p/LroPmRiIWbiFGY/5rPTERO35zuymCOngDKiuPaJ/328bItHe+tvGakubPb?= =?us-ascii?Q?XOGBhhz3fd4UQU/TtxJNmJiEckExTUdn4NLVC9Zv1tWPkllE/S70nFT46Od3?= =?us-ascii?Q?brXT8zO4gyo4wMSCQEMTQbEbDenJGG6AXzxSzXmaZyuptF/WBi1Aa17C184X?= =?us-ascii?Q?RigMwxZtAeZ/QXq/fGIhO0wMVRgjjl1wY0dayH1KXrF3Y3UCZ/T23RqqphZY?= =?us-ascii?Q?0DM+q5Q54TmrJCFjsWBexmJ1UpTNZ2MhC/1TwFVrdoV3O02/VFz1yOy8BCoy?= =?us-ascii?Q?g8d0xw7rWjZ42wsF5LMfxOWdpyYV6nDZkXvwwoctdXvB5SCy1orGIw0/HykI?= =?us-ascii?Q?hwkzsBEux+Juu6LNqliyW5cjSpiS1wqONHZVQi1SMWx+2yDWY9NtYKtU6TUD?= =?us-ascii?Q?UX9aOO0UvnAQHtNYM6ryH5HOcHB+0txnbxICaVcZ7Vjq67+ENnXKKx0QSS8v?= =?us-ascii?Q?IftcjR6CywqAckx1qsNiBbih17ho79qbydHUdZFAT2eNxzfeGktQMJnaDPtP?= =?us-ascii?Q?Yryo3r9kjS9PgNCjK9wLelXLrqPZ/zukJK0mC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Mug/7IkB9V+/ysvjU3bJjRxsNoZqvo0t?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b168be2-bad2-4024-28b9-08da06598384 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2022 07:57:55.3429 (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: /j7R19YPQf0e6Ds6ygrDCzkyL3qkaji6uGBhWrkNHiQrpCvAEsUvUmQ2a+htKJ24t3PVT4niLDq50Qb7PjvAGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4707 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Min, I don't quite understand. Of all MP services, the TDX version only supports: * GetNumberOfProcessors * GetProcessorInfo And even when TDX MP returns 3 or 4 threads from GetNumberOfProcessors(), S= tartupAllAPs() is an NOP. Will that cause any issue? Can you avoid running MP driver when TDX is enabled? Thanks, Ray