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>
This commit is contained in:
Sebastien Boeuf 2022-12-15 23:10:03 +08:00 committed by mergify[bot]
parent e03b0d0672
commit 57162cb62d
1 changed files with 5 additions and 0 deletions

View File

@ -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);