audk/OvmfPkg/TdxDxe
Isaku Yamahata 9c733f0b90 OvmfPkg: TdxDxe: Fix AsmRelocateApMailBoxLoop
In TDX, Application Processor busy-loops on Mailbox for OS to issue
MpProtectedModeWakeupCommandWakeup command to UEFI.  As the AP acking to
it, it clears the command member according to ACPI spec 6.4, 5.2.12.19
Multiprocessor Wakeup Structure: "The application processor need clear the
command to Noop(0) as the acknowledgement that the command is received."
However, AsmRelocateApMailBoxLoop wrongly clears WakeupVector.  Correctly
clear command instead of WakeupVector.

Without this patch, TD guest kernel fails to boot APs.

Fixes: fae5c1464d ("OvmfPkg: Add TdxDxe driver")

Cc: Min Xu <min.m.xu@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
2022-05-25 12:34:46 +00:00
..
X64 OvmfPkg: TdxDxe: Fix AsmRelocateApMailBoxLoop 2022-05-25 12:34:46 +00:00
TdxAcpiTable.c OvmfPkg: Add TdxDxe driver 2022-04-02 08:15:12 +00:00
TdxAcpiTable.h OvmfPkg: Add TdxDxe driver 2022-04-02 08:15:12 +00:00
TdxDxe.c OvmfPkg/TdxDxe: Install MpInitLibDepLib protocols 2022-05-11 08:40:53 +00:00
TdxDxe.inf OvmfPkg/TdxDxe: Install MpInitLibDepLib protocols 2022-05-11 08:40:53 +00:00