From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.60456.1670889939183412156 for ; Mon, 12 Dec 2022 16:05:39 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=fVR47VM7; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670889939; x=1702425939; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=pX+/BK2MJC/1tQ8pGFjXY82dweBKy6U/kdC1lKk0Muk=; b=fVR47VM7xDvE3Kbb6Dsfb1FVvLUc+5kQOyaaMV/bB0rUn/G8WCCemV3Q bTcA5hH0l7+Uc7N//faYUa8H7m9CR1kL9oQ8hpCsDrWF/Cd6HpxKAn1Ik mUkfR8MHMzH2SZINNIhYacbWeUZ+EiN41AL77oRilP5mRPBR+lEyl/rFT W/vusoZe6PXYEIpUD/whGcgEwE9nnGOKP59vw8vsA1xUNWb85MY+IDuk2 KfVBHiarrgzx/COZgqLb4MrHNqhYT6UCXbv+66KpwuBFxhYi9D4ZaattW N610Y20ptDmZ5VfOGBiaQVWeUiYJZwfYuhpWn8dfyKeNP1ifCpSfbOmWW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10559"; a="382303717" X-IronPort-AV: E=Sophos;i="5.96,239,1665471600"; d="scan'208";a="382303717" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2022 16:05:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10559"; a="772784271" X-IronPort-AV: E=Sophos;i="5.96,239,1665471600"; d="scan'208";a="772784271" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga004.jf.intel.com with ESMTP; 12 Dec 2022 16:05:18 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 12 Dec 2022 16:05:18 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 12 Dec 2022 16:05:17 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 12 Dec 2022 16:05:17 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.45) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 12 Dec 2022 16:05:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QtgijLQRx3EakzU1kyX1jj+jLoremrhdsT/cWmdiGbYcjV5bbB9y0Bq4+X1+/n6YrZ3KEnTGXu+jjJnmL8xeGecjobthZMDecN9M/vvcP2XxlQikdqyFTbrtHiaajmKhs2+aUqodKwIKvaYts0PBOOYgUj0oda8mo9QVQOMfbAet1crzWpq6IfhImyLE+O/joc2JknTYiAlJOceQojquQ140Ozjf3a84aVrjhXzdi6GgLFtdF9XC1lwlsz3Rxh+qNr3RcGA6KdfnE9u3xI+0kLov3rbltr6FViCrLhVSn9+GjhYCEJXb7DQ6wQlt40nWU83HNlN98tldd12XmhdIJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FWlZkfC6A7r4vW6yOzCovo/0QizsrD9fz7GHexlHdyY=; b=jR5fnA+sSsmtNakRTXz/z7QTiG4K6x+0vIrVI1sHueu4X4KcwitnUxepf1Qd9iglXIczMin7ByVdj6aFxaPH56JYa5rWIUEQcH9XvRn+duEnyy+qCab7yN1qNxfSvS2ONYMQ4oConTvOhY2yU+30dMSKkazJ0iu6U4A4Dx30k9vTkUFPh3+GfigNbOCWpAAPEnQKF7y8GqcSmaUbvvlxcte/HhzB529IVZmJgzzAqKEZL4kkT4zHjdZK4ueTGhIRaA3TTBTN2LHGp6SJHYcF+wY6DCpOxd6qtr1yHN7LpDrwYHeAdDtoX4vxBi7pIXVWMmmS1W5aOOeHopbcQL9oIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SJ0PR11MB5069.namprd11.prod.outlook.com (2603:10b6:a03:2ad::6) by PH0PR11MB5879.namprd11.prod.outlook.com (2603:10b6:510:142::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Tue, 13 Dec 2022 00:05:16 +0000 Received: from SJ0PR11MB5069.namprd11.prod.outlook.com ([fe80::10be:d81f:bb30:52d0]) by SJ0PR11MB5069.namprd11.prod.outlook.com ([fe80::10be:d81f:bb30:52d0%5]) with mapi id 15.20.5880.014; Tue, 13 Dec 2022 00:05:15 +0000 From: "Min Xu" To: "Boeuf, Sebastien" , "devel@edk2.groups.io" CC: "Yao, Jiewen" , "kraxel@redhat.com" Subject: Re: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB Thread-Topic: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB Thread-Index: AQHZDgi0whMiTFvTA0+Owd+0Cddtb65q8OGg Date: Tue, 13 Dec 2022 00:05:15 +0000 Message-ID: References: <99e1a00aba90014dba0135ef249f4bd649ca26f3.1670835199.git.sebastien.boeuf@intel.com> In-Reply-To: <99e1a00aba90014dba0135ef249f4bd649ca26f3.1670835199.git.sebastien.boeuf@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR11MB5069:EE_|PH0PR11MB5879:EE_ x-ms-office365-filtering-correlation-id: 40a4d02c-40a1-472e-37e4-08dadc9db6b5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EHQEh5fKCuGEYhoCZKBeZnWdBPs/aHrE2UIZpNpK7CodjzB5PL77ZX4conpC5KslB2y7KOLfKT1xVxjH08zP3P9OKIR0Po4tGwgg+A3p+ImbNL/FooIZanKP9g0aD1wDBaRgi7OppHrY5iWy04HzW5EmSMpLwsDy9llhHuwahCa6AA9TJHFSVUlwHNC1yB7NOI9Hmq2Jrw9GlonHXLPUxx7ob1DW2Md5gQQrHm/nVD9d5/FGGoLJiLLjeb28zJNL0I0SjVkyjVVyabIhpYuY7hCfwRK9sCzFKRIg//OwWOlscryfy9Bc1TLMuy8LCc62cWR4JCmJQpBiT0HrqPAC2LRFvHnbhfgJONmXN90/1DlLFS/oT2nknHY8Eio9fxS4qn3bX54CfhKaINVTv9PWbcBtSiAgFEZlvY6E97CU6fQDpFfZlT9RpSG80r9f02GHhbpxmd14f1ODx73kwVIIQnTil2dYGAnXFqYITrO/Ko3yq/lF/2ETy6Rrn50nfMBrVvXnXPMoxF81yky9pydBy+IcJt/gTq4bkGOugV9jIdF2D8Faj6M06KaDqpiUyGYIoAvVMHYpaeAlUGzn/rvpsOR4KV/3J9CK06TqkCS4jNgjr2UVepAiue9rcLfQaN8UZFcHThp2+T+U+27f3x1nzdrUnFQy7V/2Acn6fuTlgRB0ZwE6H1bYigcJQBNavhx1nKZqZw3TVsJxjoGEhbQ0WA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5069.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(396003)(376002)(346002)(366004)(136003)(451199015)(82960400001)(2906002)(55016003)(38100700002)(122000001)(52536014)(41300700001)(5660300002)(4326008)(66476007)(76116006)(66556008)(66946007)(8676002)(64756008)(66446008)(8936002)(316002)(86362001)(7696005)(38070700005)(6506007)(478600001)(54906003)(33656002)(9686003)(26005)(110136005)(71200400001)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XdZn7nPeFET9EOpddlrZgobyFWXrow/51QS9yjDWku0N1kRXXF7GOt0iNQXt?= =?us-ascii?Q?QrveT2NmoUje52BRlNJTTs382pdQFK7mnxb7UBCC/hUkYnyehttpH7YRnTgc?= =?us-ascii?Q?vRgDFhDaFMrG3fJVL7k7UAIW3z773HIxFwnSZ3jKZuB0gD29ZZ539s9LBHCe?= =?us-ascii?Q?kMb7tGlJiMLuW5iwzVyT2DsJ090wvsIdyXP2M2C432OgIpRIdqVofDGy3+Wy?= =?us-ascii?Q?WnfCpouZPcPMVmRm6R/gi/9JxhIN+tHIt1amWWRtiVG9eYstcQXIf7rjh2zH?= =?us-ascii?Q?RAeCmRz96AnyBCR7HM8Uen0/zb7vanJ96b5pOhMlGu3u+kduBMqmch99YCd8?= =?us-ascii?Q?e84tbt3O0uc5xGiL/eNHi5wEKdDTME3QLM6DH2a1giJEDev4c0AsTCp0MWf7?= =?us-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oeIoiTLAa0icEg9FR5RfKPvsyk?= =?us-ascii?Q?dQIggc/+cxX+BiwhHCqYhMpdCpjPE2tolb79/vZq8nAc9Dp6NqqAOmjHCkxK?= =?us-ascii?Q?d8AAypoPulqfxfIz6CTqh9fg1n0SaPb/jYpHeqS4s8sAmga4Sqt4KFM6mwsS?= =?us-ascii?Q?rFknHmh1QY1YYkGve6v6v8NPn547883U+o1OUxg7DRUrbF/jVXkcbgCzbdOy?= =?us-ascii?Q?tIxqJqw1wKcBs4R+mii8SydivHo3mWTl4qYbjvdJUZrlytu/1SOXUC0WnY2o?= =?us-ascii?Q?szs+dExVCY2fwxM3E0Vr65NdRMViho5uYCTJ7jMD?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5069.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40a4d02c-40a1-472e-37e4-08dadc9db6b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2022 00:05:15.9496 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rrhLrexHJOd0GsLYOl1tZY6zPh3VHH//e9F8PTGp5XKHbfjr9breaIHLUpJAx/sfMNNaUkUe/Q2LoIIcEqgigQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5879 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On December 12, 2022 5:04 PM, Boeuf, Sebastien wrote: > Subject: [PATCH 2/3] OvmfPkg/PlatformInitLib: Transfer GUID Extension HOB >=20 > From: Sebastien Boeuf >=20 > This is required for passing the ACPI tables from the VMM up to the guest= OS. > They are transferred through this GUID extension. >=20 > Signed-off-by: Jiaqi Gao > Signed-off-by: Sebastien Boeuf > --- > OvmfPkg/Library/PlatformInitLib/IntelTdx.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > 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 i= s 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 (VO= ID > *) (&Hob.Guid->Name + 1);+ BuildGuidDataHob (&Hob.Guid->Name, > GuidedData, Hob.Guid->Header.HobLength - sizeof(EFI_HOB_GUID_TYPE));+ > break; } Hob.Raw =3D GET_NEXT_HOB (Hob);-- > 2.34.1 Reviewed-by: Min Xu