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.64584.1674697691165247298 for ; Wed, 25 Jan 2023 17:48:11 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=St86g5pf; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674697691; x=1706233691; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=z+y74+Jhv+M0t49FOeGyRwS94x0vXS7T3ELAMv4JGh4=; b=St86g5pfRrnjj6y8H6QN+ZK3zL4AEMTlqytiMMrg8Aw2Sg5KhDCiNhEP 3bT0ujR5A9Y1XUz1j2fL5yIGe61QCHetQ+5uWw0ymyaSlcKZj3tQAe6wf BowWLCF4WA+qkxT2Q5vA6OvWy0a8SCRBLBVuYkUpIiIAR2q0KXQ9XVfu4 5QjTHrh0spU8tAOefZ827hv5tRxyN0p9v6iXof/krsWlrj++Bfd5zISza 4UPdmdZwGNR4PZch72pRJHvG1THo4vmRn1TGSgSzrLhO2CKOuRPpKSNKS RUVJ1aGguhDYigmLI0UWLPZ+UkQEVqnRqhAPPXBI31tbRMhzTEhDyxeeo A==; X-IronPort-AV: E=McAfee;i="6500,9779,10601"; a="391240693" X-IronPort-AV: E=Sophos;i="5.97,247,1669104000"; d="scan'208";a="391240693" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2023 17:48:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10601"; a="612643348" X-IronPort-AV: E=Sophos;i="5.97,247,1669104000"; d="scan'208";a="612643348" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 25 Jan 2023 17:48:10 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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; Wed, 25 Jan 2023 17:48:09 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 25 Jan 2023 17:48:09 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.42) 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; Wed, 25 Jan 2023 17:48:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A0ZFmqPHF3ftqxxL2Xxk7N3BGaEK+RQAsRc5IOC3oS86Gn0yNplrszEqgKaUfJcrqLn/PVb1z2ygn9zu7NNiEVmIxL1HeZTYTtxL/Mdna2yKxX6YQaYkARTAsDL6EzJKUUvXWRxXcvEBHMOt6QzKhikHEajuBFHMW92Fnug2HZClL7Ep5QzWWZKm+qSEs3UFdVh8joLuEw3jjyWk79ciUbXTjvNScy0WBMnOuXY5GDNmtkEWYiTWK6CrREctNxxfsRGcBWMGx8lBs/gNbSZM6zJDHTzJnsYkqHddVsOWqEfwwKGhqUDDInblikAt9Ex9GpZmOoe2PT4kjIe8NJiK+w== 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=Sd4BgaiOj0cmPmBQBNkGUXUfL1S0TenYU6jGeLirXfU=; b=nBG/KcpXnUpwN7yRXG16j8GYvaW0PPmREkxHQJ3YKeim7UB3NUcxfqRKf+wKYGdWMTqfBkO7aX3BhjCAXJdPyTUyzySBkYXcOSvKhSjO4GGu7/WTTsebLz3wJrXc3gejMsus1RrNSM2S9F0lA3sQgCQElD5vEHdTl3Q1H1E04i74w0uWhA6mboF5Mf0QfN0OMQQYtcSaWBEgX2Gzlo204v3QI/aC30iqR/qOgGM2oQAqaumfgNAcO2lDNUMuDLd5s+94UKQwAazsCFp0EQU/b2Ao5TdiU4QTMO9J1UdvwEHMNjt2yxYZVQDJ/dPI7vzk09vJvZy/lwU+u711ujVirA== 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 MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by PH0PR11MB7711.namprd11.prod.outlook.com (2603:10b6:510:291::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Thu, 26 Jan 2023 01:48:05 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041%9]) with mapi id 15.20.6002.033; Thu, 26 Jan 2023 01:48:05 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "kraxel@redhat.com" CC: Pawel Polawski , Tom Lendacky , Oliver Steffen , "Ard Biesheuvel" , "Justen, Jordan L" Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg: fix BuildResourceDescriptorHob call in PlatformAddHobCB() Thread-Topic: [edk2-devel] [PATCH 1/1] OvmfPkg: fix BuildResourceDescriptorHob call in PlatformAddHobCB() Thread-Index: AQHZMOBdvc7pgqYJL02JY9OMYexJrq6v7qVA Date: Thu, 26 Jan 2023 01:48:05 +0000 Message-ID: References: <20230125171049.1958204-1-kraxel@redhat.com> In-Reply-To: <20230125171049.1958204-1-kraxel@redhat.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: MW4PR11MB5872:EE_|PH0PR11MB7711:EE_ x-ms-office365-filtering-correlation-id: ebc8df6c-3278-4483-13da-08daff3f5e2f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rrgWKRlfDjR1ziqe8mJO+7BIRV9lbpbUV0bsDFya4HPBglRv5USEFezLLlFsLTZ8at/GeUMc3E3mcVwnncNqXCIj3bySnaXSNQ2yuNMMh8UdKSzIYPq7wD1fRdxt/yx+DEoTLM/ou4dcX4471bAIM1n59gLVl06JUxNjVPQIThYw1TO1TX5/wOKgQvd2TiGiKsrP3f2ETErIv/c7Yk0ut6InJpisQL4T34c96OquEaN+RnzbNZlFJBCOIOvqfPEAdIZeYp1faiGOhQSunPGFNnV/DIXA2R8oXgcXteka8dRniuLqkxtST8dYgnnSawX7Pe+DawqxNtwmJmgo9PO4tiO1cZrna3MMp9IRiSEzPcQgnH/guW99novyo8sddqN+P9gVuKasN04sfGFtr5+I1IDh/CCz77l1GhyZEnVI+akQFpAwp6qNB3jy6vsOJs+GjQHCbvrBJpD+zsnZwr6Dty6vtJ4IOFjTgiLp/IlA0b1XyRV7USLBXgDILLryEm6lpnS5iKwEhOR8Cm5A71SrorQ8aUKgOIlyinaQ8W5AA3jaoa3XuMzDdT0BdyLb6HjgMlRzPlM/R6tCjlC+O5DL+bevXwe5gGYHWf82rwfJpj6diM2Q277lWJ/AvBpLhFoQPRvxRM32j/nyeauBXYiYFANBScL2Dj923KjNMaF02k9oqJ32w/O5Fn4RLP0dJ6d/m1Xu292Oh/hQU12iqwXOlFbcft0x4erwa6ZSr8hH4Jcqtg1fx9dv+CPAP0ILlkMTawkxjJjDshHs17sSupqzLg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(136003)(39860400002)(366004)(346002)(396003)(376002)(451199018)(66899018)(71200400001)(9686003)(66446008)(33656002)(86362001)(55016003)(6506007)(186003)(26005)(54906003)(478600001)(53546011)(52536014)(966005)(41300700001)(2906002)(5660300002)(83380400001)(316002)(66556008)(8676002)(76116006)(107886003)(64756008)(66946007)(110136005)(8936002)(4326008)(82960400001)(66476007)(7696005)(38100700002)(122000001)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?h5UGXNGrmVkwbdE6izZAU57rMoqqwTa6l04llaG2S+0ORJhKLc536qvxr/hi?= =?us-ascii?Q?epMQZq/YV3pkJbDWL3ug98AlkIt8ot1/TClK0VjRQox9zpnyffKUJaxB+kcG?= =?us-ascii?Q?DBJF8St6UZ97VJ4zpAXtvRF98R2GOq2fKeFkGlvEaeMtXG6lXmiS3alVaoXU?= =?us-ascii?Q?V8usWiwBNHG/yZXAtt/+7tXFaDMau18wJkLosfYMiJKBS11Bol4sUbb5Oahk?= =?us-ascii?Q?bG0EgwI18SFsqI5aNzWIa+pY64avx0VzhGDpXwBZ+5B5qdKti2/YQGKRtf7T?= =?us-ascii?Q?PBLYa80q95Tfz0CUS5MZ+rjAMuTcaVrLXQhE+BVhnCh+oxEB9nHdNBDI/Jta?= =?us-ascii?Q?4iPa0XRj/xDJaYpXBskvm4yhzpf8h88dUuowrNnVf5Mtl3MoCZ+T3lCyQ684?= =?us-ascii?Q?7ewECadtFg2nu/D1W1HXFFK5TKpC2qtGOILuZ6FFYLyEVCf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7Fffi9Fasw/16oGz4oZIpQGcTnoyEgJpZQ4/b5dG?= =?us-ascii?Q?eRssYo6++IxuSWIIvbG2leoJgVRch5/5mKusKieb/Xx4FV0nrCTuC8GvYthF?= =?us-ascii?Q?8H90oNFJrIMCNuZBBlm06NAPLDTDgLTdtqyBH1rA1YWdqyZPPFm3WsVGUZkE?= =?us-ascii?Q?1+UX8g3sp4mx7rdiS045gFyJ959Y8F+HRjDsXT/396OAfiDiZXlXajvdQ5Jp?= =?us-ascii?Q?SSxMpEFG6CQhn2GTfm1/XLdFYVugEC1pNNsDqpny?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebc8df6c-3278-4483-13da-08daff3f5e2f X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2023 01:48:05.4043 (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: 6vH1izqqJdnk7ySWJdGlM2/F/W/ytZ8VoH5ZH3157PX8rmSkUV1iezDlDJ8yTPG6XqJ0/0ugK5pvdj4BNfjB3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7711 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen Yao > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Thursday, January 26, 2023 1:11 AM > To: devel@edk2.groups.io > Cc: Pawel Polawski ; Tom Lendacky > ; Yao, Jiewen ; Oliver > Steffen ; Gerd Hoffmann ; Ard > Biesheuvel ; Justen, Jordan L > > Subject: [edk2-devel] [PATCH 1/1] OvmfPkg: fix BuildResourceDescriptorHob= call > in PlatformAddHobCB() >=20 > BuildResourceDescriptorHob() expects the third parameter be the Length, > not the End address. >=20 > Fixes: 328076cfdf45 ("OvmfPkg/PlatformInitLib: Add PlatformAddHobCB") > Reported-by: Tom Lendacky > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/Library/PlatformInitLib/MemDetect.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c > b/OvmfPkg/Library/PlatformInitLib/MemDetect.c > index 5aeeeff89f57..38cece9173e8 100644 > --- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c > +++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c > @@ -200,7 +200,7 @@ PlatformAddHobCB ( >=20 > break; > case EfiAcpiAddressRangeReserved: > - BuildResourceDescriptorHob (EFI_RESOURCE_MEMORY_RESERVED, 0, Base, > End); > + BuildResourceDescriptorHob (EFI_RESOURCE_MEMORY_RESERVED, 0, > Base, End - Base); > DEBUG ((DEBUG_INFO, "%a: Reserved [0x%Lx, 0x%Lx)\n", __FUNCTION__, > Base, End)); > break; > default: > -- > 2.39.1 >=20 >=20 >=20 >=20 >=20