audk/OvmfPkg/TdxDxe
Ceping Sun 35f6a2780e OvmfPkg/TdxDxe: Clear the registers before tdcall
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4696

Refer to the [GHCI] spec, TDVF should clear the BIT5 for RBP in the mask.
And TDVF should clear the regitsers to avoid leaking secrets to VMM.

Reference:
[GHCI]: TDX Guest-Host-Communication Interface v1.5
https://cdrdv2.intel.com/v1/dl/getContent/726792

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Min Xu <min.m.xu@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
2024-03-19 09:42:06 +00:00
..
X64 OvmfPkg/TdxDxe: Clear the registers before tdcall 2024-03-19 09:42:06 +00:00
TdxAcpiTable.c OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0 2023-09-13 02:29:52 +00:00
TdxAcpiTable.h
TdxDxe.c OvmfPkg: Realize EdkiiMemoryAcceptProtocol in TdxDxe 2022-11-01 10:08:10 +00:00
TdxDxe.inf OvmfPkg: Realize EdkiiMemoryAcceptProtocol in TdxDxe 2022-11-01 10:08:10 +00:00