From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.29038.1620636147718096359 for ; Mon, 10 May 2021 01:42:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=cLs+/jyE; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: hao.a.wu@intel.com) IronPort-SDR: MPz95vSnxkW5lyQTDS6unF7DQF7zLqDMtlxMK3fqHvekIn+ZE9d0TRj3TnQNSEsq8MuG+CJdTR fD0mTvEEGZPA== X-IronPort-AV: E=McAfee;i="6200,9189,9979"; a="199215559" X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="199215559" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 01:42:23 -0700 IronPort-SDR: sEQSPjc8m52UX6Ea9RMTHAde76LuN8q8cQHEFOvxwtiMQP+waArQRbDnp/8wlrKgenAGxyDMcj 5eO+zC4uL/xw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="468016887" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga002.fm.intel.com with ESMTP; 10 May 2021 01:42:23 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 10 May 2021 01:42:22 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 10 May 2021 01:42:22 -0700 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.2106.2 via Frontend Transport; Mon, 10 May 2021 01:42:22 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) 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.2106.2; Mon, 10 May 2021 01:42:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XexGTjjqpJr6KN3PoJMfxGtNewq6XjGBZny2a5WY4a/2kbg9+fXBukZDuWhICjsZ9e4pXgDLnmx5UXeNtW7VHYMi4wOc4qm9cepNaJgx284BTfi95Puq7J0ATBRo7kdnELZQL4t6Id/qFqH81wNRaRgbBvr65IOh1B9VXjVgNP3oL51h0JEvDgRzZ997bj1YE5xD53yzkvC55hemrJKdGWXIBabRySE7dqKzyjXx9m6VrDb+ehIvhOs++Ahsm7XACfjPJEvR3/VVqjLZzkgvYwQ9VJ2n0l+dVoC7/5Len+f3fluuiQAFoJxuZtB/YQdgk0Z+Ta0bv3qCmz/vKiZljA== 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-SenderADCheck; bh=Tjyz6/buRBdu/q4m6bNYZCZTIKi+ogxiaEWZgx0ZTfY=; b=PVwM8kIPLWAQJPD5NHgIcpEhxb5BdciXlh10C2x8zNV93h1t9UlyKPKk37fhBnp8gEcixCgKHkjN1EsFZ2nudwOsLLG2UsflKAhJQ0n9CoipwW+s/6rYnRiknVp4vJ7jjYnk8rXt+SQuXSwnijvrTg1gq7Zrzqh4YGBYtuvibSUiNGw4agUwfma1ZLKKtwJkXhodvNcdraNQ0w+pdHz9P28xBDcSkVWCYPnqqCZ8fNJfZo3cwq9ToJqsFcWtC6nzf49f+PjaVUnrdDULXEpB7ZvFK+bryriyIiQuI0WRgg4Xkyy6r2iU9+Xq8DFeGu3Infgiw2Ke5T2mzLL9egwzQw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Tjyz6/buRBdu/q4m6bNYZCZTIKi+ogxiaEWZgx0ZTfY=; b=cLs+/jyEdjx7clXTUxdBF7Wqf20bVILkaycnvyhOZamVLHqcTAQSmfjwRdtDN40DMarWhHYQO/k0nYJICMBYcVKDSy3tXCMJvKunf9hm4evOL+88AA1KqHY9aqlqFfl6yrxZjCSbmKJvlgevJ5LIqH9ephqLFM0jJ45RY+ertGk= Received: from BN8PR11MB3666.namprd11.prod.outlook.com (2603:10b6:408:8c::19) by BN7PR11MB2724.namprd11.prod.outlook.com (2603:10b6:406:b3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Mon, 10 May 2021 08:42:21 +0000 Received: from BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::b9d0:5694:1b70:c031]) by BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::b9d0:5694:1b70:c031%4]) with mapi id 15.20.4108.031; Mon, 10 May 2021 08:42:21 +0000 From: "Wu, Hao A" To: "devel@edk2.groups.io" , "Liu, Zhiguang" CC: "Wang, Jian J" , "Gao, Zhichao" , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg: Retrive boot manager menu from any fv Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg: Retrive boot manager menu from any fv Thread-Index: AQHXRXS/kW9BjvMMxEmaXgJ1MrggL6rcZEEA Date: Mon, 10 May 2021 08:42:20 +0000 Message-ID: References: <20210510081532.1073-1-zhiguang.liu@intel.com> In-Reply-To: <20210510081532.1073-1-zhiguang.liu@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 711f98a0-6afd-4698-45dd-08d9138f86b3 x-ms-traffictypediagnostic: BN7PR11MB2724: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S6GqzvzMIoR3tRGBWPse99gQwlNEHiRPHbwLldErIBZJ6dpp06AzZUCPk3T5f0bwzp9aD9o53EHMWfaF72F1wgUbdVtdSHqzmIwpFgADOB26KRCGjz3vTyWYy63vNVrIJHemoPGcneoWpU/ivPBXsVhwVntRLwdgnYJHUferu/R9Kgt90Jlm6UPOJ+4NllEdsVUMjsskiFQrj/DFk04JLm4RWMo1DbzWHr3i6SjqGdj1nnLmPQydGiOKVdHzarClnjAFadDx+Ni14MCGo7cn6d8t+kdx26RoxpCYMnsDovdtxMzT9BSmi6mljfRwffgeJ1JNbK9YBb6o3iK4/R5FcnfIj668/BzsR0t7XQk8kjyHfQGh9aSSW4YtCE+gvi6Jgiqv6xTPivFSj9bj0h99i9jcun2/7zXDN+FoaqZi5D2HHMyw4cy0GsqzxgrFad8mqOXVXprPbgkl552TLGO9u224p2G4EFFa4222kxyByBnR8e8e1hfq5DXBal3BBspMqHUcFdRZ1h3+hquMtiteApi8qI5R/mf80AG1IiXhglbpLLNs8+GHG7uAgmTvmsxYz0scZGMFWbnSeu9ezrD9kbJrWWidshrNJgwTWUJUe13J7pHx2QqMP9/nJpCgI1tc/zCnIzRpB7kv7vvO9s6Elak8TdHWSjuOqWHh2114ytXDX/iiljYe5KHDtcTjpU0+MpnoZeFlgz9MryubRaegkab4Hq/3dKK0px+8JeI0jOE= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3666.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(39860400002)(346002)(366004)(396003)(376002)(136003)(110136005)(6506007)(53546011)(7696005)(8936002)(71200400001)(107886003)(8676002)(54906003)(478600001)(55016002)(9686003)(5660300002)(4326008)(86362001)(33656002)(52536014)(316002)(186003)(122000001)(38100700002)(66946007)(66476007)(64756008)(66446008)(76116006)(66556008)(6636002)(26005)(966005)(2906002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?O4SVkwMkSq2RIxt4Dn7RZZLdtJDP1VNByLSM0nOqavIn7lj2MmFc0+XRkLNF?= =?us-ascii?Q?jl56R+fXtAuQ/qn28UkSk4MuYDI2QHdvabyMf2FaJ2j+8Gq3D3t9wfAZM4W6?= =?us-ascii?Q?e5Y/Xo3veR5feNP3Rj2rUvVwiYl8Zjbg4p7cfvtV4NOo4fBb9f3iRlFKa2Gv?= =?us-ascii?Q?dTEvq017Q/Kgo8Rcfu4ZWmgC0/Fdj2I5yRR6cRDN4oJTSR2g+pF771ujUY+w?= =?us-ascii?Q?dhGGdTkp6a1XMWL7bcXnUmnBuZZz8HcT/aRwQjuGFSU78JYRJFbvvoozNnUh?= =?us-ascii?Q?QRW6/erpFvN+inAH/hqAmlmW2eYoXaJMXX9wCVR2PVWTKerz2CnEE+B3P5+Q?= =?us-ascii?Q?+nTZjReA/56HvlauM7/G8a0hDiO7dG0IEKy9eGtiZMIpsWVAxNYQBX+W9Gmz?= =?us-ascii?Q?Tre8/20cMJ0W6b0+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=?us-ascii?Q?XEsHhWTt3adV4oivTp7Hb82l?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3666.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 711f98a0-6afd-4698-45dd-08d9138f86b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2021 08:42:20.9543 (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: P795FbzzMbxsjLYFw4imHbZd1GcopUIWB4xqKRR7s91D1EjXDKuJVudbju0J3JgdZ8J4PGcphZ4HJ7iad4TIeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2724 Return-Path: hao.a.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of > Zhiguang Liu > Sent: Monday, May 10, 2021 4:16 PM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; > Gao, Zhichao ; Ni, Ray > Subject: [edk2-devel] [PATCH] MdeModulePkg: Retrive boot manager menu > from any fv >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3384 >=20 > Currently, UefiBootManagerLib has the below assumption: > Assume the BootManagerMenuFile is in the same FV as the module links to > this library. > It has some limitation now, so remove the assumption. Hello Zhiguang, Sorry for a question. Do you know what is the boot performance impact if 'G= etSectionFromAnyFv()' is being used? Any data on the impact for originally working platforms? Best Regards, Hao Wu >=20 > Cc: Jian J Wang > Cc: Hao A Wu > Cc: Zhichao Gao > Cc: Ray Ni > Signed-off-by: Zhiguang Liu > --- > MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > index 6cc34d29c0..b8df4d590f 100644 > --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > @@ -2,7 +2,7 @@ > Library functions which relates with booting. Copyright (c) 2019, NVI= DIA > CORPORATION. All rights reserved.-Copyright (c) 2011 - 2020, Intel > Corporation. All rights reserved.
+Copyright (c) 2011 - 2021, Intel > Corporation. All rights reserved.
(C) Copyright 2015-2021 Hewlett > Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2- > Clause-Patent @@ -2385,7 +2385,6 @@ > EfiBootManagerRefreshAllBootOption ( > This function is called to get or create the boot option for the Boot = Manager > Menu. The Boot Manager Menu is shown after successfully booting a boot > option.- Assume the BootManagerMenuFile is in the same FV as the module > links to this library. @param BootOption Return the boot option of= the > Boot Manager Menu @@ -2437,7 +2436,7 @@ > BmRegisterBootManagerMenu ( > if (DevicePath =3D=3D NULL) { Data =3D NULL;- Status =3D GetSe= ctionFromFv (+ > Status =3D GetSectionFromAnyFv ( PcdGetPtr > (PcdBootManagerMenuFile), EFI_SECTION_PE32, = 0,@@ - > 2455,7 +2454,7 @@ BmRegisterBootManagerMenu ( > // // Get BootManagerMenu application's description from EFI Use= r > Interface Section. //- Status =3D GetSectionFromFv (+ Status = =3D > GetSectionFromAnyFv ( PcdGetPtr (PcdBootManagerMenuFile), > EFI_SECTION_USER_INTERFACE, 0,-- > 2.30.0.windows.2 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#74859): https://edk2.groups.io/g/devel/message/74859 > Mute This Topic: https://groups.io/mt/82714887/1768737 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [hao.a.wu@intel.com] - > =3D-=3D-=3D-=3D-=3D-=3D >=20