From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.45412.1671522218501539952 for ; Mon, 19 Dec 2022 23:43:38 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=T35v18GO; spf=pass (domain: intel.com, ip: 134.134.136.100, 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=1671522218; x=1703058218; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=tP20+wbG7b+nbKgRSShaM7ykIfatU5oMAQ/WVTUgcrw=; b=T35v18GO6dY8mrlbyEUZ5jGkbMdkgoIq38JINRJZRl75BPtflNxvmI6W CyxhXj+ZR2jM/xEb9OQWA6cNFW4Anh4hRXL98KI5yJqgyk106VfpFbOAC UCFgADnvC3gc5Utq3npncar8Qk2cU0bDuD2WImPxwPW6M0LQZJWaFwEzK hTzPm0nOumtJMQybOxqv5RYm8z3Z9Ch3ywSYf0Rt4Cg08RV1hACs9PMTd Ym6G5IAusTZXZ9xx3b4aHGDCYmFa6h1kg/BtU/h0ggiIepcX+SqRR4WPV Ga18T51DcYPtsd7WUC8h1KDhV/pECPt03fR/WA3AUjUBTXNKmfk3iTLl9 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="383898902" X-IronPort-AV: E=Sophos;i="5.96,258,1665471600"; d="scan'208";a="383898902" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2022 23:43:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="896318112" X-IronPort-AV: E=Sophos;i="5.96,258,1665471600"; d="scan'208";a="896318112" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 19 Dec 2022 23:43:33 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 19 Dec 2022 23:43:32 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.16; Mon, 19 Dec 2022 23:43:31 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 19 Dec 2022 23:43:31 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) 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.2507.16; Mon, 19 Dec 2022 23:43:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ATRzbT20Rhqx4Zbmhr8jRCP4wVz1Fo2TcNCs3MLD6uoYFc6r/c7yDYqjhvHYBoMNJCxZyqnqe0b6K3Zpq/e2Sr+UD9tM/uGWDgLfEu/9V+hqCTFa6dIHjFV51fnZJVQFsypzg+U4KI9t324iFAy5u4kpbA82HxOcnq0X6xWJqqfhfhmbQ9g7A/KsH4xl1ODtNh3SyRYEBNUrZWwmU+0rqMKABr2Z9reeTOulxVOz/xr5/UmW5BPQgVXwLckyZokYMfv7JWzCUOOKarsLEGzdQlaqeIRM9M8UOhZYDegoHfhmmPKePOvZ3z0WaFCXXXxJJpvysbsMyyxiFvDaoccYWQ== 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=RmtqgyWzdAaFk914ufIUbkuGDveQgSOk6xlcpzsMQGk=; b=XxjYD+RLHBEO8hM2j+qNG4l2D+/0vH9YyFfcbM16UZEUbBwHUy//p7E8wMl1xSO+hj71wf845owd7pQS+E+MFv9lf1Ywu/Rx+ZX2uf5NNlKOYnli7EJN/WtbrPg+jJFe4V/MGqkzmkcwo0lkW8Q8RRFsGUJw7P1qgyadMlvCsbNUOlbsjGBQePKr6Eea/DBClWOcUan8g6VtII/6Q+Pk9Vyt66U9QdUTykozTWXPN99GSrcdYmQLwaq1woFSpaRIDYxfeemu0NhmGrV2AzQ0Qxe2KIrelFsElvKghP4Eu+nA2iUaj1Qnpn7hMUXYGW+MXl6NjRNHwrcStzQVtmHaGA== 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 DS0PR11MB6519.namprd11.prod.outlook.com (2603:10b6:8:d1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 07:43:30 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::994e:d3c4:7608:3405]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::994e:d3c4:7608:3405%4]) with mapi id 15.20.5924.016; Tue, 20 Dec 2022 07:43:30 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Xie, Yuanhao" Subject: Re: [edk2-devel] [PATCH 0/4] Put APs in 64 bit long-mode before booting to OS. Thread-Topic: [edk2-devel] [PATCH 0/4] Put APs in 64 bit long-mode before booting to OS. Thread-Index: AQHZE/KJPEjJWNkRt0SqVw2NWTALlq52ZZDQ Date: Tue, 20 Dec 2022 07:43:30 +0000 Message-ID: References: <20221219214017.3738-1-yuanhao.xie@intel.com> In-Reply-To: <20221219214017.3738-1-yuanhao.xie@intel.com> Accept-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: MWHPR11MB1631:EE_|DS0PR11MB6519:EE_ x-ms-office365-filtering-correlation-id: 9f4b3a14-4c67-47e8-cbe1-08dae25de389 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uReyh8mV8LC3xvX61uT0FYftggXw/Im6kSI21hwnRg490xO1lFu/BIyu5ZqPNQYjA/tL+uZ8eOme68nr8eLtfAgTfuKwFrHQjyxmp4AsN0jDG3SCc6ghhjRTnzOtglwTrvDGk+ae3yQMhn1ZizCAzgyhjWETKDN/HGk0rx2QddPRO00jVrCyW/F4fq9kNQte6L2bSzxos6PXpjx4NjPWnlldzbzVp7u1+CFZ3CTkprYJ3UpRUkshcaYAi1FmddD9ptwU/qMXpiuRbSP6vqLdHTsQhoF6lOHLV/zkKDS9xCymRR7CdjJBEbCH+fDdB1NTeErN9K0+3iAHUkOOLzW5l5rAKU7i5ua3i6c/5QPontar30+yKoCUdmMgPtjSmpC6OuxGekgpHArauXkpazuJmcMGjMXNYxp42W5fqQGYjG624pWKJHBZCiU0r0Hv+nEkLz+ABFIz1OgfU/arLfpIW5JtD06A0VneG7ufWc6uoWWU8h/Aa3QHdxPzfqTPwmPTZix2yefiKihivTAr7Cllgi0Rh60zSS3+Zx8wnRWC94DzmQ8j3iT/Dn8Cc6ZQ0GRbdR53npmg781AdhoR/Jv46ELsNS3FA97BNtrpcv5QK9gL1LfmhnVdyrrtj3mZU0NegnQHJaAM2RStnfN+tZJdC8QYsshO0c36+xIUgN3lyxJdu03OVJiWnKHQQUeVDybB26+BVHPm9gzkBuyxA2fzxC3jJRwCMG25JMkienSwNZS61LeUwb9/FyPYCuGUrQoVK8hrGH++8iARcRKg3rP08A== 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:(13230022)(376002)(366004)(136003)(346002)(396003)(39860400002)(451199015)(966005)(55016003)(38100700002)(82960400001)(6636002)(122000001)(478600001)(110136005)(2906002)(66899015)(52536014)(19627235002)(316002)(66556008)(8936002)(5660300002)(66446008)(66946007)(86362001)(66476007)(76116006)(8676002)(64756008)(186003)(26005)(71200400001)(83380400001)(38070700005)(33656002)(9686003)(7696005)(41300700001)(6506007)(53546011);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0FmCGS5H3tq9TMoBmBlyqBXR4aScJUnMBSy3m7sMlE2YMAKGdIN2fpUq8MNW?= =?us-ascii?Q?Evd7sQjoSVdKWY/YrdYt+LQGx42D5uZEKen6ITm9dhTtmyT/NWnuxIAb1xjz?= =?us-ascii?Q?Qdu2+ag2RE76dJvE2CiR/B0aMXufaMjk9F7Ea5Zl7SPQSyzBhUcURVs8aHUj?= =?us-ascii?Q?SI+vS5bRHgE4oMVZ50WcoF0H77tgCAgYFmfTejqJbQVTh6nX+ExLsj5EVt4f?= =?us-ascii?Q?7W+vKPFLPD3qMMpLnUg5ogvVD7zVlsTRn1ML/qFF0gCX9RuCTiPhBsiEmTDd?= =?us-ascii?Q?68fzWkS0/B/djzZV+fqxKEHRbBvgc38PVa/00/u9hYqQZg63hWDMpHVhDaY1?= =?us-ascii?Q?PDdJoGgG+IzfxHUzk8gpJraWPBsdsKQXbkGu8m5UQ2eg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ascii?Q?tyjvhjQb5ya7B7zaJsygn1+ft7V4KIx8ElmKv6UakcvJCmEc7rgVGfFOfrKp?= =?us-ascii?Q?Pl3xjOBjaBuruar+i12R7yJs5mSrd4+4LxZQaybdQwFsj0C6Elf0zDyPtSOe?= =?us-ascii?Q?neTUIVfZYSVcNmjKYI7j+ROqWUeQ6XM3TIsI3rmC5kxPkZybQfYZQd15puqE?= =?us-ascii?Q?xVD9WsalkNakq2LUN2+zf9GSVMFc/RkneUG7oFkfVCEkFLQ54s0yutLmAwn2?= =?us-ascii?Q?NdXri6YiBhUhmyoDZe3ndslBzT8XmNm5JiauhaHGARRO7bLLoZPWrbmkcWn+?= =?us-ascii?Q?5cBf+bRATYj2YQEGGHs=3D?= 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: 9f4b3a14-4c67-47e8-cbe1-08dae25de389 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2022 07:43:30.3016 (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: N/EE6J0Le9kmwQk1L4Ygxwx7gt4VqBMTx0VltAKOEsnLa5+iXX9c4I+72gWVbDK+0o1FlA66f7S9Y4uFmaDGhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB6519 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 Reviewed-by: Ray Ni > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Yuanhao Xi= e > Sent: Tuesday, December 20, 2022 5:40 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH 0/4] Put APs in 64 bit long-mode before boot= ing to OS. >=20 >=20 > Yuanhao Xie (4): > UefiCpuPkg: Duplicated AsmRelocateApLoop as AsmRelocateApLoopAmd > UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. > OvmfPkg: Add CpuPageTableLib required by MpInitLib. > UefiPayloadPkg: Add CpuPageTableLib required by MpInitLib. >=20 > OvmfPkg/AmdSev/AmdSevX64.dsc | 3 +- > OvmfPkg/CloudHv/CloudHvX64.dsc | 1 + > OvmfPkg/IntelTdx/IntelTdxX64.dsc | 4 +- > OvmfPkg/Microvm/MicrovmX64.dsc | 3 +- > OvmfPkg/OvmfPkgIa32X64.dsc | 1 + > OvmfPkg/OvmfPkgX64.dsc | 2 + > OvmfPkg/OvmfXen.dsc | 3 +- > UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 7 +- > UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 129 ++++++------- > .../Library/MpInitLib/Ia32/CreatePageTable.c | 27 +++ > UefiCpuPkg/Library/MpInitLib/MpEqu.inc | 2 + > UefiCpuPkg/Library/MpInitLib/MpLib.h | 46 ++++- > UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm | 169 +++++++++++++++++ > .../Library/MpInitLib/X64/CreatePageTable.c | 75 ++++++++ > UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 176 ++++-------------- > UefiCpuPkg/UefiCpuPkg.dsc | 1 + > UefiPayloadPkg/UefiPayloadPkg.dsc | 1 + > 17 files changed, 430 insertions(+), 220 deletions(-) > create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c > create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c >=20 > -- > 2.36.1.windows.1 >=20 >=20 >=20 >=20 >=20