audk/OvmfPkg/PlatformPei
Tom Lendacky 52fa7e78d2 OvmfPkg/PlatformPei: Move NV vars init to after SEV-SNP memory acceptance
When OVMF is built with the SECURE_BOOT_ENABLE set to true, reserving and
initializing the emulated variable store happens before memory has been
accepted under SEV-SNP. This results in a #VC exception for accessing
memory that hasn't been validated (error code 0x404). The #VC handler
treats this error code as a fatal error, causing the OVMF boot to fail.

Move the call to ReserveEmuVariableNvStore() to after memory has been
accepted by AmdSevInitialize().

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
2024-11-23 18:02:30 +00:00
..
AmdSev.c OvmfPkg: Enable AMD SEV-ES DebugVirtualization 2024-07-04 20:39:26 +00:00
ClearCache.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
FeatureControl.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Fv.c OvmfPkg/PlatformPei: PeiFv: stop using mPlatformInfoHob 2022-12-14 17:45:41 +00:00
IntelTdx.c OvmfPkg/PlatformPei: Build gCcEventEntryHobGuid at First 2024-09-03 17:06:40 +00:00
MemDetect.c OvmfPkg/PlatformPei: log pei memory cap details 2024-02-27 13:29:25 +00:00
MemTypeInfo.c OvmfPkg: Format with Uncrustify 73.0.8 2023-11-27 20:14:59 +00:00
Platform.c OvmfPkg/PlatformPei: Move NV vars init to after SEV-SNP memory acceptance 2024-11-23 18:02:30 +00:00
Platform.h OvmfPkg/PlatformPei: Relocate SmBases in PEI phase 2024-05-08 01:53:58 +00:00
PlatformId.c OvmfPkg: Create SP800155 HOBs from QemuFwCfgFile 2024-07-02 16:10:29 +00:00
PlatformId.h OvmfPkg: Create SP800155 HOBs from QemuFwCfgFile 2024-07-02 16:10:29 +00:00
PlatformPei.inf OvmfPkg: Create SP800155 HOBs from QemuFwCfgFile 2024-07-02 16:10:29 +00:00
SmmRelocation.c OvmfPkg/PlatformPei: Relocate SmBases in PEI phase 2024-05-08 01:53:58 +00:00