]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/TdxDxe: Set PcdEmuVariableNvStoreReserved
authorMin M Xu <min.m.xu@intel.com>
Wed, 22 Jun 2022 01:11:03 +0000 (09:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 6 Sep 2022 07:21:42 +0000 (07:21 +0000)
Set PcdEmuVariableNvStoreReserved with the value in PlatformInfoHob. It
is the address of the EmuVariableNvStore reserved in Pei-less startup.

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/TdxDxe/TdxDxe.c
OvmfPkg/TdxDxe/TdxDxe.inf

index bfdaef59dd5838348f134067b5b8e45d5290952c..05cfb597dc64101b1cac986b54b4eaa6c53bab07 100644 (file)
@@ -64,6 +64,8 @@ SetPcdSettings (
     PlatformInfoHob->PcdCpuBootLogicalProcessorNumber\r
     ));\r
 \r
+  PcdSet64S (PcdEmuVariableNvStoreReserved, PlatformInfoHob->PcdEmuVariableNvStoreReserved);\r
+\r
   if (TdIsEnabled ()) {\r
     PcdStatus = PcdSet64S (PcdTdxSharedBitMask, TdSharedPageMask ());\r
     ASSERT_RETURN_ERROR (PcdStatus);\r
index a7e0abda1522b160ee4d2e8638e5eece4bf0f81c..3ce8a5c32c986f12918e441045a35f8af6f582ab 100644 (file)
@@ -68,3 +68,4 @@
   gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved\r