audk/OvmfPkg/Include
Min M Xu 4f173db8b4 OvmfPkg/PlatformInitLib: Add functions for EmuVariableNvStore
There are 3 functions added for EmuVariableNvStore:
 - PlatformReserveEmuVariableNvStore
 - PlatformInitEmuVariableNvStore
 - PlatformValidateNvVarStore

PlatformReserveEmuVariableNvStore allocate storage for NV variables early
on so it will be at a consistent address.

PlatformInitEmuVariableNvStore copies the content in
PcdOvmfFlashNvStorageVariableBase to the storage allocated by
PlatformReserveEmuVariableNvStore. This is used in the case that OVMF is
launched with -bios parameter. Because in that situation UEFI variables
will be partially emulated, and non-volatile variables may lose their
contents after a reboot. This makes the secure boot feature not working.

PlatformValidateNvVarStore is renamed from TdxValidateCfv and it is used
to validate the integrity of FlashNvVarStore
(PcdOvmfFlashNvStorageVariableBase). It should be called before
PlatformInitEmuVariableNvStore is called to copy over the content.

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>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2022-09-06 07:21:42 +00:00
..
Guid OvmfPkg/AmdSev: expose the SNP reserved pages through configuration table 2021-12-09 06:28:10 +00:00
IndustryStandard OvmfPkg/VirtioGpuDxe: add GetDisplayInfo to virtio-gpu spec header. 2022-04-25 21:01:13 +00:00
Library OvmfPkg/PlatformInitLib: Add functions for EmuVariableNvStore 2022-09-06 07:21:42 +00:00
Pcd OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Ppi OvmfPkg: Add MpInitLibDepLib related PPI/Protocol definitions 2022-05-11 08:40:53 +00:00
Protocol OvmfPkg: Add MpInitLibDepLib related PPI/Protocol definitions 2022-05-11 08:40:53 +00:00
Register OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
OvmfPlatforms.h OvmfPkg: Handle Cloud Hypervisor host bridge 2021-12-11 14:26:05 +00:00
TdxCommondefs.inc OvmfPkg: Update Sec to support Tdx 2022-04-02 08:15:12 +00:00
WorkArea.h OvmfPkg: Replace GUEST_TYPE with CC_GUEST_TYPE 2022-04-19 01:26:08 +00:00