Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 9c733f0b90b31a7e3711f60da314f2a5cfe5fe8a
      
https://github.com/tianocore/edk2/commit/9c733f0b90b31a7e3711f60da314f2a5cfe5fe8a
  Author: Isaku Yamahata <isaku.yamah...@intel.com>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M OvmfPkg/TdxDxe/X64/ApRunLoop.nasm

  Log Message:
  -----------
  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...@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamah...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Reviewed-by: Min Xu <min.m...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to