summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Boeuf <sebastien.boeuf@intel.com>2022-12-15 23:10:03 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-12-16 02:37:56 +0000
commit57162cb62dc0f5d9aca31a035b96c5ac203b78ee (patch)
tree2e0b81c37bc3e153f8469b22d550b62aa2e00ef1
parente03b0d06726c0a2c3fa4a6aff43a8c584172767b (diff)
downloadedk2-57162cb62dc0f5d9aca31a035b96c5ac203b78ee.tar.gz
edk2-57162cb62dc0f5d9aca31a035b96c5ac203b78ee.tar.bz2
edk2-57162cb62dc0f5d9aca31a035b96c5ac203b78ee.zip
OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB
This is required for passing the ACPI tables from the VMM up to the guest OS. They are transferred through this GUID extension. Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com> Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> Reviewed-by: Min Xu <min.m.xu@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--OvmfPkg/Library/PlatformInitLib/IntelTdx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c b/OvmfPkg/Library/PlatformInitLib/IntelTdx.c
index acd114e38e..55ca3ecaa1 100644
--- a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c
+++ b/OvmfPkg/Library/PlatformInitLib/IntelTdx.c
@@ -547,6 +547,7 @@ TransferTdxHobList (
EFI_PEI_HOB_POINTERS Hob;
EFI_RESOURCE_TYPE ResourceType;
EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute;
+ VOID *GuidedData;
//
// PcdOvmfSecGhcbBase is used as the TD_HOB in Tdx guest.
@@ -577,6 +578,10 @@ TransferTdxHobList (
Hob.MemoryAllocation->AllocDescriptor.MemoryType
);
break;
+ case EFI_HOB_TYPE_GUID_EXTENSION:
+ GuidedData = (VOID *)(&Hob.Guid->Name + 1);
+ BuildGuidDataHob (&Hob.Guid->Name, GuidedData, Hob.Guid->Header.HobLength - sizeof (EFI_HOB_GUID_TYPE));
+ break;
}
Hob.Raw = GET_NEXT_HOB (Hob);