Skip to content

Commit 3abaa28

Browse files
mxu9mergify[bot]
authored andcommitted
OvmfPkg/TdxDxe: Set PcdEmuVariableNvStoreReserved
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>
1 parent 70165fa commit 3abaa28

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

OvmfPkg/TdxDxe/TdxDxe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ SetPcdSettings (
6464
PlatformInfoHob->PcdCpuBootLogicalProcessorNumber
6565
));
6666

67+
PcdSet64S (PcdEmuVariableNvStoreReserved, PlatformInfoHob->PcdEmuVariableNvStoreReserved);
68+
6769
if (TdIsEnabled ()) {
6870
PcdStatus = PcdSet64S (PcdTdxSharedBitMask, TdSharedPageMask ());
6971
ASSERT_RETURN_ERROR (PcdStatus);

OvmfPkg/TdxDxe/TdxDxe.inf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@
6868
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr
6969
gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask
7070
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack
71+
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved

0 commit comments

Comments
 (0)