From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.135614.1671117052986226917 for ; Thu, 15 Dec 2022 07:10:58 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=RB4Od55P; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: sebastien.boeuf@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671117058; x=1702653058; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1/L7cOy05TAwMq8+G/NFy5Ghnh4hQyaqOF3iisnrurs=; b=RB4Od55Pu12Ti3taBgCXNqKswvX/6JBsRBu1f1yFrclXF4Jum/6hwAr7 W7IlaSjxoOREAq46tEfoCbDeLmvZeTcVUYchRZ9HqqmdgSJXQAQ4Tqctv UiISJy4YHVgp0KisJQW2cyPMwNpT6ZFcUJricL0oXl+f2oT06Yo1JoeZr Dm9P2umhpUZPKYkQyo3h08927F1YYhcuHlr6W/7fh54V+SPuuxfddHfU3 qdwOBGOTNwQrg8zhuRxsizXdshR8Rf3S/Nu9DaxzPPjJfMkx3YH21BZ6H aTEOGMYfcfLwQGLHwYxUBjk+bATrynWm8auxs8qwCnMsI5TsCjkoeGU7m w==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="299048818" X-IronPort-AV: E=Sophos;i="5.96,247,1665471600"; d="scan'208";a="299048818" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 07:10:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="773759953" X-IronPort-AV: E=Sophos;i="5.96,247,1665471600"; d="scan'208";a="773759953" Received: from bholthau-mobl1.ger.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.60.50]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 07:10:18 -0800 From: "Boeuf, Sebastien" To: devel@edk2.groups.io Cc: jiewen.yao@intel.com, min.m.xu@intel.com, kraxel@redhat.com, sebastien.boeuf@intel.com Subject: [PATCH v2 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB Date: Thu, 15 Dec 2022 16:10:03 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: Sebastien Boeuf 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 Signed-off-by: Sebastien Boeuf --- OvmfPkg/Library/PlatformInitLib/IntelTdx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c b/OvmfPkg/Library/P= latformInitLib/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 =3D (VOID *)(&Hob.Guid->Name + 1); + BuildGuidDataHob (&Hob.Guid->Name, GuidedData, Hob.Guid->Header.Ho= bLength - sizeof (EFI_HOB_GUID_TYPE)); + break; } = Hob.Raw =3D GET_NEXT_HOB (Hob); -- = 2.34.1 --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, = 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 5 208 026.16 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.