From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.51221.1683209494766396783 for ; Thu, 04 May 2023 07:11:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=GH5H+xoH; spf=pass (domain: intel.com, ip: 134.134.136.65, 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=1683209494; x=1714745494; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=nkH7PqiIXyaCVEnvBPcMkotkUSLsGWRNmkM0pqSKIO4=; b=GH5H+xoHT/ohJx/LY6WiznpiHfDOgVHxxvperswpTIHR5WlhxsZf9TRU VB87eEv5cai6JOPKrnokgwEilinNwtdVOGmaN2QYIlG4l79mBO2U26S0G LNoJgzkCU9iu9Zh+4QrDqhPqij0qxUjjgYSUCdNyc0eVEcn29cGBkWiH/ sVJl4c1CvmwhUZmD1bHqG99lGGjlkgqLwqL45dNOGTW6GVqZ5oVOiIQfx zFkDAOdGa/wj8RusNNgl+EZfz8NmYXI3mnKq2ph699YziYxFZ4pSbYGLZ BdTJAfiTqyXG1m94TV5qLeP59K+Rl2ditooZPBtYFcq8FCDZUcmsIFotB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="351951154" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="351951154" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 06:44:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="699889281" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="699889281" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP; 04 May 2023 06:44:58 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.23; Thu, 4 May 2023 06:44:58 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 4 May 2023 06:44:57 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.23 via Frontend Transport; Thu, 4 May 2023 06:44:57 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Thu, 4 May 2023 06:44:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U1dBEJsL8EQYBASKOo1NWXwB8mn7D61wg3OytkSNgKAz+l0lVPMnBDNEsRAsWaLGKW5POn2E3CtvgDXfb1C563D9CuQNYjKZEdPfyGqFEO1l7uNjJ7QlWFBj7ZQxN7qdKxSnLk3b7qcmjzSP0tm0RK+y3/h0b0RaJPqSa0/adQMTQhoB6JO6R8G46C69Vqokzmk9LhC5lFvbq5h03MWGtk5OTTa4TlzFJc2X5SM05tVnSwQTSNgeSSPZhicy0m0t/521IaA56VEAqTiLM1S6CMo1ZAetXBW7QJn4+3CSUVcoaE4ZN6W0ci5k+XutXHxfFJt2w/PqHdMchoDGPfwfgA== 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=ZypIwW0DNsOqfYz2WN1p4dPHcHIgv1H4qzMJfIdThGY=; b=brOomfPUVPhPyHuUHWugtHlZ2eyCr5v2IvMpmhrsJSh0ytuSR26Z4Hzmp5SeTHCr0Mi6DmA22hE+YBmfPQmFZD+xYkLbOcSZyhiz67Oph4do61ibE/0RUcdN8ao5Rh7Qw93bIG9JYs+D+VPt7hNktRanV5j6IEyJT1OBHzWQwotU5ziz1TPsZlrQ6S6fO1XIYSCJexKUeX/wEBeOcfsUcoYV4//ayHewlgj2Y4Llt1Vry6f6F+8WA739bEEcEKYBVLfyKewRF6AuyGSY1oG+4KhvIBILvTKv5ulTy8ZtQQrivft0kj4mJ3Lghhb+AkrQ83yCa0bPsMOO+B4Ack8+Lw== 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 PH8PR11MB7093.namprd11.prod.outlook.com (2603:10b6:510:217::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Thu, 4 May 2023 13:44:55 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::48e9:aeb0:c365:388]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::48e9:aeb0:c365:388%6]) with mapi id 15.20.6363.026; Thu, 4 May 2023 13:44:55 +0000 From: "Yao, Jiewen" To: Gerd Hoffmann , "devel@edk2.groups.io" CC: "Aktas, Erdem" , "Xu, Min M" , Tom Lendacky , "Justen, Jordan L" , Stefan Berger , "Julien Grall" , Anthony Perard , =?iso-8859-1?Q?Marc-Andr=E9_Lureau?= , "Ard Biesheuvel" , Oliver Steffen , James Bottomley , Pawel Polawski , Michael Roth Subject: Re: [PATCH 0/3] OvmfPkg: remove PlatformBootManagerLibGrub Thread-Topic: [PATCH 0/3] OvmfPkg: remove PlatformBootManagerLibGrub Thread-Index: AQHZfo0PlloN04fXekaXy2o15Ptlt69KIAQA Date: Thu, 4 May 2023 13:44:55 +0000 Message-ID: References: <20230504133251.1031341-1-kraxel@redhat.com> In-Reply-To: <20230504133251.1031341-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_|PH8PR11MB7093:EE_ x-ms-office365-filtering-correlation-id: fdb5b6a3-7358-4aba-a730-08db4ca5be87 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l73OC7bKz54+L89NaTCwrSOQHXnPwwROlnkwL7cPPgvvdNz/2hbOhnntzVBLPpYGAGqFSoQFUyU3wyA0IadRxZXbBCRymkU+vXSd50vMc6k7cNI0RHsvH25oLSWawe0gc19nzWlRoqQigktneK/cQjASj56Cu+gUNdcGgEh1o0kNJRbSyRm1asxJIcIDjdQMUjpl1eKiiL4147omXKLKAy4VAhfdDn3itjlAu5lr1HShumQhY3h3X0pT8BmUDu+7AZ5343Aon51v6o3P8CdMmUBwNSaKvkrXR7H2NZ7jCJlkQlZtqbKWnpqWsbO670ThLj144PLe9MiruOuzSEIgeMKV9NpvYiHyCwumDt9PzV1s22rcLUYe44ytYtaegcg0gZIGnHlMrv8CtUmo2i2muX+ThEgCxv3hVeX1OGdGw1tMbcUEoPMcI4FXwOq78n/XcRaKsVjTCbCMMST9Q8bwmLi9zlLscfX3nJ8P1f9POFMRGrE2TaCvHUZOiHI/zaaBYSZtvuJhi2flH6Nk8xQBBmWf+KuxhPtjwgbGBz0kHBLs7PszObIyfcC/CLrKIzZpiSouPcsYvlGAsRMqurlQ5I0d58Oob7KfZgd9obuHakwhKhoFb4cUg8Bvylb91r/1tLt7dGkst3caYm4YhEZdmg== 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:(13230028)(136003)(376002)(39860400002)(396003)(366004)(346002)(451199021)(7696005)(110136005)(66476007)(4326008)(66556008)(66446008)(64756008)(66946007)(478600001)(76116006)(71200400001)(19627235002)(54906003)(316002)(33656002)(86362001)(83380400001)(53546011)(6506007)(9686003)(8936002)(7416002)(41300700001)(2906002)(5660300002)(52536014)(8676002)(55016003)(38070700005)(122000001)(82960400001)(186003)(38100700002)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?YlskLDO9o8NaeJYYtwU7N6J9BeOtj+xK0mtkgGrOVxZVP71ysVzSrIIKbY?= =?iso-8859-1?Q?iAucNaJatdQgZHRQWrFJLbLQBNLKDSSxYiK/if6aDFvj9YdkiNuZGgNDEd?= =?iso-8859-1?Q?vpFyTus2IztS4BzMlgtiORw9BosDHCE0ujhFTRn4s55fKTcFLJeW4UMmQ1?= =?iso-8859-1?Q?odifAxLag+oO5FqpHVvnc1Tm3Dexxzfz9f9aY3trSenYUnHEFSrezFmhi2?= =?iso-8859-1?Q?HhvbKHO/rTA0f7wE7S/toS7+YsQQldEWKT+ZcBdjoNaue3IeWBU5RAh0Al?= =?iso-8859-1?Q?FT2ZonvaoBtfyFsCwY4seQAnLemTzlYaqppYZ+Nox1tkQ2kkfrabhyLRXN?= =?iso-8859-1?Q?gcEZp3czvmSWqgluXvZ2wTUC2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?Q?8pVXL2An0DccoZVHUmeuqur2/txY1iMKiqd31KJopf5sweRj/u3AED1upG?= =?iso-8859-1?Q?6K3GZUp8ZSJ9DDT7XENxBFeA/JcAtSD2UHoJdr20VhtPfnZiQQMG7yr63E?= =?iso-8859-1?Q?q8KpoSvsd0w9vukvWpu6Sid93XfEL0UDMUSVr+YwSnCZhZEdOSiinSv2KH?= =?iso-8859-1?Q?MKVqQDz9TtWUm+TuIbaJOEVYPtON+X7qYw/bsaQE7n5D5crlkvgML24ytZ?= =?iso-8859-1?Q?+5u3UyqLDEmxU6GI1vGIvcQHltGTV+cj5lXCnZz80brojBHb9I0UvFTwc6?= =?iso-8859-1?Q?Tvgb6nF4IJ6NY3HQQ4HuLWF+LI03AdF5XCAOcT7NAp0C/IqaoYdeHhIVp/?= =?iso-8859-1?Q?JO5597vhaoQUo=3D?= 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: fdb5b6a3-7358-4aba-a730-08db4ca5be87 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2023 13:44:55.2369 (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: oNx8nbcaQPtSBcE0EkXiaFGJg3Vj0/rM+2tSbKYlnzUY+ylYRFdQJk6STkhlvL3WhGze7c1+I6bV9d1itA2NOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB7093 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We should remove duplication. Acked-by: Jiewen Yao > -----Original Message----- > From: Gerd Hoffmann > Sent: Thursday, May 4, 2023 9:33 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Aktas, Erdem > ; Xu, Min M ; Tom > Lendacky ; Justen, Jordan L > ; Stefan Berger ; Julie= n > Grall ; Anthony Perard ; > Marc-Andr=E9 Lureau ; Ard Biesheuvel > ; Oliver Steffen ; > James Bottomley ; Pawel Polawski > ; Michael Roth ; Gerd > Hoffmann > Subject: [PATCH 0/3] OvmfPkg: remove PlatformBootManagerLibGrub >=20 > An attempt to reduce code duplication a bit. PlatformBootManagerLibGrub > is an (outdated) copy of PlatformBootManagerLib with some policy > changes. Add a PCD to enable this policy and add support for that to > PlatformBootManagerLib, which in turn allows to remove > PlatformBootManagerLibGrub. >=20 > Gerd Hoffmann (3): > OvmfPkg/PlatformBootManagerLib: add PcdBootRestrictToFirmware > OvmfPkg/AmdSev: stop using PlatformBootManagerLibGrub > OvmfPkg: drop PlatformBootManagerLibGrub >=20 > OvmfPkg/OvmfPkg.dec | 3 + > OvmfPkg/AmdSev/AmdSevX64.dsc | 10 +- > .../PlatformBootManagerLib.inf | 2 + > .../PlatformBootManagerLibGrub.inf | 73 - > .../PlatformBootManagerLibGrub/BdsPlatform.h | 185 -- > .../PlatformBootManagerLib/BdsPlatform.c | 70 +- > .../PlatformBootManagerLibGrub/BdsPlatform.c | 1604 ----------------- > .../PlatformBootManagerLibGrub/PlatformData.c | 212 --- > .../PlatformBootManagerLibGrub/QemuKernel.c | 55 - > 9 files changed, 79 insertions(+), 2135 deletions(-) > delete mode 100644 > OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGr > ub.inf > delete mode 100644 > OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.h > delete mode 100644 > OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c > delete mode 100644 > OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformData.c > delete mode 100644 > OvmfPkg/Library/PlatformBootManagerLibGrub/QemuKernel.c >=20 > -- > 2.40.1