]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg: Enable Tdx support in MpInitLib
authorMin Xu <min.m.xu@intel.com>
Mon, 19 Jul 2021 01:35:39 +0000 (09:35 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 2 Apr 2022 08:15:12 +0000 (08:15 +0000)
commit88da06ca763eb6514565c1867a801a427c1f3447
tree281b664c0a32e282bee63cba73e7ceeebf82cd39
parentd983b102b35899d8ff37477657c67af819aa6303
UefiCpuPkg: Enable Tdx support in MpInitLib

RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429

In TDVF BSP and APs are simplified. BSP is the vCPU-0, while the others
are treated as APs.

So MP intialization is rather simple. ApWorker is not supported, BSP is
always the working processor, while the APs are just in a
wait-for-precedure state.

Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
UefiCpuPkg/Library/MpInitLib/MpIntelTdx.h [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/MpLib.c
UefiCpuPkg/Library/MpInitLib/MpLibTdx.c [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/MpLibTdxNull.c [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf