On December 12, 2022 5:04 PM, Boeuf, Sebastien wrote:
> Subject: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB
> 
> From: Sebastien Boeuf <sebastien.bo...@intel.com>
> 
> 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....@intel.com>
> Signed-off-by: Sebastien Boeuf <sebastien.bo...@intel.com>
> ---
>  OvmfPkg/Library/PlatformInitLib/IntelTdx.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c
> b/OvmfPkg/Library/PlatformInitLib/IntelTdx.c
> index acd114e38e..468855a968 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);--
> 2.34.1

Reviewed-by: Min Xu <min.m...@intel.com>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97281): https://edk2.groups.io/g/devel/message/97281
Mute This Topic: https://groups.io/mt/95617497/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to