public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Min Xu" <min.m.xu@intel.com>
To: "Boeuf, Sebastien" <sebastien.boeuf@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Yao, Jiewen" <jiewen.yao@intel.com>,
	"kraxel@redhat.com" <kraxel@redhat.com>
Subject: Re: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB
Date: Tue, 13 Dec 2022 00:05:15 +0000	[thread overview]
Message-ID: <SJ0PR11MB50690EF6F75F61FD42294D19C5E39@SJ0PR11MB5069.namprd11.prod.outlook.com> (raw)
In-Reply-To: <99e1a00aba90014dba0135ef249f4bd649ca26f3.1670835199.git.sebastien.boeuf@intel.com>

On December 12, 2022 5:04 PM, Boeuf, Sebastien wrote:
> Subject: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB
> 
> From: Sebastien Boeuf <sebastien.boeuf@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.gao@intel.com>
> Signed-off-by: Sebastien Boeuf <sebastien.boeuf@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.xu@intel.com>

  reply	other threads:[~2022-12-13  0:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12  9:03 [PATCH 0/3] OvmfPkg: Make IntelTdx work with Cloud Hypervisor Boeuf, Sebastien
2022-12-12  9:03 ` [PATCH 1/3] OvmfPkg/PlatformInitLib: Differentiate TDX case for " Boeuf, Sebastien
2022-12-13  0:04   ` Min Xu
2022-12-12  9:03 ` [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB Boeuf, Sebastien
2022-12-13  0:05   ` Min Xu [this message]
2022-12-12  9:03 ` [PATCH 3/3] OvmfPkg/AcpiPlatformDxe: Differentiate TDX case for Cloud Hypervisor Boeuf, Sebastien
2022-12-13  0:05   ` Min Xu
2022-12-14 16:19 ` [PATCH 0/3] OvmfPkg: Make IntelTdx work with " Yao, Jiewen
2022-12-15  2:02   ` Yao, Jiewen
2022-12-15 15:11     ` Boeuf, Sebastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR11MB50690EF6F75F61FD42294D19C5E39@SJ0PR11MB5069.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox