From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.83549.1675777797372123216 for ; Tue, 07 Feb 2023 05:49:57 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=YY0FwNQc; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1675777797; x=1707313797; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=8cQ0eRJUQ3QQbORsLUQVE/xk6yhVNHJYbHkruZrDxNA=; b=YY0FwNQcBl1rnPbWY8JUEvKDB0N0gZHCcY7wRgOn3zx7lZQ87FCiNiuF 1Vjz5NFTaG4FiBIP4koOLo4IEEApfeA8m4xEtZwQlMqlYbxK0qf+NFtkc Br0HH33Y2cGr+wmalSZIdsFyl6ortrZOaPQwMXrba2KOcgtGf/ty3KYF/ QdyWgS21A9+Kt/KS3pdB5ZYDHjDShc9Hvym3sdnsO6AdqJkBtFvWQMyo2 Tn8xAx6f1ahF9vpQsa6A0T/OuM/B30f1B8frBGFMl5T24tEGSr6N3zb7x /sffTRGUMbkyQcAc5tKbTXW4FO2TIVTgqwqjww+o5bdeW714UDfcmqlJe g==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="329524564" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="329524564" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 05:49:56 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="660234250" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="660234250" Received: from xieyuanh-mobl.ccr.corp.intel.com ([10.255.31.127]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 05:49:55 -0800 From: "Yuanhao Xie" To: devel@edk2.groups.io Subject: [PATCH 0/5] Put APs in 64 bit mode before handoff to OS. Date: Tue, 7 Feb 2023 21:49:34 +0800 Message-Id: <20230207134939.273-1-yuanhao.xie@intel.com> X-Mailer: git-send-email 2.36.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Ref:https://bugzilla.tianocore.org/show_bug.cgi?id=4234 Yuanhao Xie (5): UefiCpuPkg: Duplicate RelocateApLoop for Amd x64 processors. UefiCpuPkg: Contiguous memory allocation and code clean-up. OvmfPkg: Add CpuPageTableLib required by MpInitLib. UefiPayloadPkg: Add CpuPageTableLib required by MpInitLib UefiCpuPkg: Put APs in 64 bit mode before handoff to OS. OvmfPkg/AmdSev/AmdSevX64.dsc | 3 +- OvmfPkg/CloudHv/CloudHvX64.dsc | 1 + OvmfPkg/IntelTdx/IntelTdxX64.dsc | 4 +- OvmfPkg/Microvm/MicrovmX64.dsc | 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 1 + OvmfPkg/OvmfPkgX64.dsc | 2 + OvmfPkg/OvmfXen.dsc | 3 +- UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 7 +- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 170 ++++++++++------- .../Library/MpInitLib/Ia32/CreatePageTable.c | 23 +++ .../Library/MpInitLib/Ia32/MpFuncs.nasm | 9 +- UefiCpuPkg/Library/MpInitLib/MpEqu.inc | 20 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 47 +++++ UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm | 169 +++++++++++++++++ .../Library/MpInitLib/X64/CreatePageTable.c | 82 ++++++++ UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 176 +++--------------- UefiCpuPkg/UefiCpuPkg.dsc | 1 + UefiPayloadPkg/UefiPayloadPkg.dsc | 1 + 18 files changed, 484 insertions(+), 236 deletions(-) create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c -- 2.36.1.windows.1