audk/OvmfPkg/ResetVector
Min Xu 5a2411784b OvmfPkg: Clear WORK_AREA_GUEST_TYPE in Main.asm
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429

Previously WORK_AREA_GUEST_TYPE was cleared in SetCr3ForPageTables64.
This is workable for Legacy guest and SEV guest. But it doesn't work
after Intel TDX is introduced. It is because all TDX CPUs (BSP and APs)
start to run from 0xfffffff0, thus WORK_AREA_GUEST_TYPE will be cleared
multi-times if it is TDX guest. So the clearance of WORK_AREA_GUEST_TYPE
is moved to Main16 entry point in Main.asm.
Note: WORK_AREA_GUEST_TYPE is only defined for ARCH_X64.

For Intel TDX, its corresponding entry point is Main32 (which will be
introduced in next commit in this patch-set). WORK_AREA_GUEST_TYPE will
be cleared there.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
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>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2021-10-24 02:09:27 +00:00
..
Ia16 OvmfPkg/AmdSev: reserve MEMFD space for for firmware config hashes 2021-07-29 09:49:50 +00:00
Ia32 OvmfPkg: Clear WORK_AREA_GUEST_TYPE in Main.asm 2021-10-24 02:09:27 +00:00
Main.asm OvmfPkg: Clear WORK_AREA_GUEST_TYPE in Main.asm 2021-10-24 02:09:27 +00:00
ResetVector.inf OvmfPkg/ResetVector: update SEV support to use new work area format 2021-08-27 12:10:40 +00:00
ResetVector.nasmb Ovmfpkg: update Ia32 build to use new work area 2021-10-19 01:36:52 +00:00