From nobody Mon Feb 9 09:08:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+97470+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97470+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1671117060; cv=none; d=zohomail.com; s=zohoarc; b=ORPs7Bdc1N5Gec5uz/y+8V/DB2W+ZdRSn7Xcf9pPAavQqQAZBxtQHpLkbngPc2T5lGPFJxkzi4RhK6vne246S0fwDTP+Z4PWWgaM7AstSzonVrzvCTn/0N2gMFS1g+PE9lbRJemJwnwZE6O2eBmPAxgPc0if/QNGC5ZfQo6gCoY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671117060; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=6DVF+UDPoibiKsYvZys4N0/eWEmpbbd3P9EFsRRKeTw=; b=akPVrHxU2TtE27jm8Z4Q72//4gfroVd9r8ZFTcW+pBU70rN/hRKuI++XuuhAMHC3T37pr8TCe5EjD3Fmhd1A/bLwny3ve6rxtSMuKtdOybAhsp/QoRF87laW/YOkMbvqkv4xbjby8kAVGSRMsGOknt6v+yR63CpxsMO9HEY9tjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97470+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1671117060396722.8358719119358; Thu, 15 Dec 2022 07:11:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Op8EYY1788612xQ9Y2CIHIhw; Thu, 15 Dec 2022 07:10:59 -0800 X-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 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" X-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" X-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: [edk2-devel] [PATCH v2 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB Date: Thu, 15 Dec 2022 16:10:03 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sebastien.boeuf@intel.com X-Gm-Message-State: 2NEWL5MVuF8asgaaLtHpbDJox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1671117059; bh=WIexnQihuc1lON8r8EDB9a3H7ztP330HF+KvoDPpM/I=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=wX5PZy9CQroUNW/VfFImPcwfPg0YlF/yZdDURMp4xbppX9kg0B8nBL4gCSGJGqO+Afw PA/JbowCME+GS0XHGXAESGkdr0TKybRRBnONdXYR11ZoaYEsiQ5oGP/9x9CIP26XU4H9C 7Q4mngiz+1ofv93nR/ke3/+/prs2wcYYewk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1671117061387100002 Content-Type: text/plain; charset="utf-8" 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; =20 // // 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; } =20 Hob.Raw =3D GET_NEXT_HOB (Hob); --=20 2.34.1 --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris,=20 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. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#97470): https://edk2.groups.io/g/devel/message/97470 Mute This Topic: https://groups.io/mt/95690239/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-