mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +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
|
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 {
|
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
!if $(SMM_REQUIRE) == TRUE
|
!if $(SMM_REQUIRE) == TRUE
|
||||||
|
@ -717,7 +717,10 @@
|
|||||||
}
|
}
|
||||||
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
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 {
|
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
!if $(SMM_REQUIRE) == TRUE
|
!if $(SMM_REQUIRE) == TRUE
|
||||||
|
@ -40,8 +40,6 @@ IntelTdxInitialize (
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TdxHelperBuildGuidHobForTdxMeasurement ();
|
|
||||||
|
|
||||||
PcdStatus = PcdSet64S (PcdConfidentialComputingGuestAttr, CCAttrIntelTdx);
|
PcdStatus = PcdSet64S (PcdConfidentialComputingGuestAttr, CCAttrIntelTdx);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include <IndustryStandard/QemuCpuHotplug.h>
|
#include <IndustryStandard/QemuCpuHotplug.h>
|
||||||
#include <Library/MemEncryptSevLib.h>
|
#include <Library/MemEncryptSevLib.h>
|
||||||
#include <OvmfPlatforms.h>
|
#include <OvmfPlatforms.h>
|
||||||
|
#include <Library/TdxHelperLib.h>
|
||||||
|
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
#include "PlatformId.h"
|
#include "PlatformId.h"
|
||||||
@ -311,6 +312,10 @@ InitializePlatform (
|
|||||||
DEBUG ((DEBUG_INFO, "Platform PEIM Loaded\n"));
|
DEBUG ((DEBUG_INFO, "Platform PEIM Loaded\n"));
|
||||||
PlatformInfoHob = BuildPlatformInfoHob ();
|
PlatformInfoHob = BuildPlatformInfoHob ();
|
||||||
|
|
||||||
|
if (TdIsEnabled ()) {
|
||||||
|
TdxHelperBuildGuidHobForTdxMeasurement ();
|
||||||
|
}
|
||||||
|
|
||||||
PlatformInfoHob->SmmSmramRequire = FeaturePcdGet (PcdSmmSmramRequire);
|
PlatformInfoHob->SmmSmramRequire = FeaturePcdGet (PcdSmmSmramRequire);
|
||||||
PlatformInfoHob->SevEsIsEnabled = MemEncryptSevEsIsEnabled ();
|
PlatformInfoHob->SevEsIsEnabled = MemEncryptSevEsIsEnabled ();
|
||||||
PlatformInfoHob->PcdPciMmio64Size = PcdGet64 (PcdPciMmio64Size);
|
PlatformInfoHob->PcdPciMmio64Size = PcdGet64 (PcdPciMmio64Size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user