mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
OvmfPkg/PlatformPei: Build gCcEventEntryHobGuid at First
Since the PEI Hob service is ready after PEIM loaded, TDVF should build the Hob for TdHob and Cfv event at first. Cc: Erdem Aktas <erdemaktas@google.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Min Xu <min.m.xu@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Elena Reshetova <elena.reshetova@intel.com> Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
This commit is contained in:
parent
d997d3c62f
commit
5bb4f9694a
@ -704,7 +704,10 @@
|
||||
}
|
||||
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
||||
|
||||
OvmfPkg/PlatformPei/PlatformPei.inf
|
||||
OvmfPkg/PlatformPei/PlatformPei.inf {
|
||||
<LibraryClasses>
|
||||
NULL|OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperLibNull.inf
|
||||
}
|
||||
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||
<LibraryClasses>
|
||||
!if $(SMM_REQUIRE) == TRUE
|
||||
|
@ -717,7 +717,10 @@
|
||||
}
|
||||
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
||||
|
||||
OvmfPkg/PlatformPei/PlatformPei.inf
|
||||
OvmfPkg/PlatformPei/PlatformPei.inf {
|
||||
<LibraryClasses>
|
||||
NULL|OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperLibNull.inf
|
||||
}
|
||||
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||
<LibraryClasses>
|
||||
!if $(SMM_REQUIRE) == TRUE
|
||||
|
@ -40,8 +40,6 @@ IntelTdxInitialize (
|
||||
return;
|
||||
}
|
||||
|
||||
TdxHelperBuildGuidHobForTdxMeasurement ();
|
||||
|
||||
PcdStatus = PcdSet64S (PcdConfidentialComputingGuestAttr, CCAttrIntelTdx);
|
||||
ASSERT_RETURN_ERROR (PcdStatus);
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <IndustryStandard/QemuCpuHotplug.h>
|
||||
#include <Library/MemEncryptSevLib.h>
|
||||
#include <OvmfPlatforms.h>
|
||||
#include <Library/TdxHelperLib.h>
|
||||
|
||||
#include "Platform.h"
|
||||
#include "PlatformId.h"
|
||||
@ -311,6 +312,10 @@ InitializePlatform (
|
||||
DEBUG ((DEBUG_INFO, "Platform PEIM Loaded\n"));
|
||||
PlatformInfoHob = BuildPlatformInfoHob ();
|
||||
|
||||
if (TdIsEnabled ()) {
|
||||
TdxHelperBuildGuidHobForTdxMeasurement ();
|
||||
}
|
||||
|
||||
PlatformInfoHob->SmmSmramRequire = FeaturePcdGet (PcdSmmSmramRequire);
|
||||
PlatformInfoHob->SevEsIsEnabled = MemEncryptSevEsIsEnabled ();
|
||||
PlatformInfoHob->PcdPciMmio64Size = PcdGet64 (PcdPciMmio64Size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user