]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformPei: Update ReserveEmuVariableNvStore
authorMin M Xu <min.m.xu@intel.com>
Wed, 22 Jun 2022 01:08:41 +0000 (09:08 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 6 Sep 2022 07:21:42 +0000 (07:21 +0000)
commit58eb8517ad7b56574f8f04b770a59a9cbed796c4
treec5044a46a296ea54a8d3200786a51392ed7e31e9
parent4f173db8b45b97563e83847cdff45e6690561482
OvmfPkg/PlatformPei: Update ReserveEmuVariableNvStore

ReserveEmuVariableNvStore is updated with below 2 functions defined in
PlatformInitLib:
 - PlatformReserveEmuVariableNvStore
 - PlatformInitEmuVariableNvStore

PlatformInitEmuVariableNvStore works when secure boot feature is enabled.
This is because secure boot needs the EFI variables (PK/KEK/DB/DBX, etc)
and EmuVariableNvStore is cleared when OVMF is launched with -bios
parameter.

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>
OvmfPkg/PlatformPei/Platform.c