From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.6908.1671399810977497917 for ; Sun, 18 Dec 2022 13:43:31 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=BSWt8m2w; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: yuanhao.xie@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671399810; x=1702935810; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=sw3BhlEXpKSb2ofqH3dP42g6VJKoxDhCjac3XBvgvfw=; b=BSWt8m2whjlvdoOXSCk517iqcglJ+376cvbGGXjBBWsFMKhfWAHnLf3S FynmXfHaQsS0HmN6EYJA1hzxItSRlxQX+mfLyWYCA0QLRdAE0xH1gX0Fv SDYhFjNMUvVhaXYsRljXABk+bLbt244dnlj+IJlIzAJ2qadU/ereUYJM8 KAjjycgreCR2Fu4wm14JVUsagOoLAVffseMubX0Ky04FddjYK4lmrCTmC tyGyIR0QuNM5VPbiI4HGCt7CX1T1945VvxDvgvmSLwobJWHRiMuy81Ys2 tOZd0lPkIMubO+fDnOtk9WMV8xFp0Ps1wWNTeE/ebu07PuuQ3WNI4BQRL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10565"; a="320408983" X-IronPort-AV: E=Sophos;i="5.96,254,1665471600"; d="scan'208";a="320408983" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2022 13:43:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10565"; a="792676955" X-IronPort-AV: E=Sophos;i="5.96,254,1665471600"; d="scan'208";a="792676955" Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.182.166]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2022 13:43:29 -0800 From: "Yuanhao Xie" To: devel@edk2.groups.io Subject: [PATCH 0/4] Put APs in 64 bit long-mode before booting to OS. Date: Mon, 19 Dec 2022 05:43:13 +0800 Message-Id: <20221218214317.3431-1-yuanhao.xie@intel.com> X-Mailer: git-send-email 2.36.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. 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 | 132 +++++++------ .../Library/MpInitLib/Ia32/CreatePageTable.c | 28 +++ UefiCpuPkg/Library/MpInitLib/MpEqu.inc | 2 + UefiCpuPkg/Library/MpInitLib/MpLib.h | 46 ++++- UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm | 169 +++++++++++++++++ .../Library/MpInitLib/X64/CreatePageTable.c | 74 ++++++++ UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 177 ++++-------------- UefiCpuPkg/UefiCpuPkg.dsc | 1 + UefiPayloadPkg/UefiPayloadPkg.dsc | 1 + 17 files changed, 434 insertions(+), 220 deletions(-) create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c -- 2.36.1.windows.1