From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0725.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe44::725]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5D29E81C85 for ; Wed, 9 Nov 2016 21:56:36 -0800 (PST) Received: from CS1PR84MB0295.NAMPRD84.PROD.OUTLOOK.COM (10.162.190.26) by CS1PR84MB0295.NAMPRD84.PROD.OUTLOOK.COM (10.162.190.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Thu, 10 Nov 2016 05:56:38 +0000 Received: from CS1PR84MB0295.NAMPRD84.PROD.OUTLOOK.COM ([10.162.190.26]) by CS1PR84MB0295.NAMPRD84.PROD.OUTLOOK.COM ([10.162.190.26]) with mapi id 15.01.0707.013; Thu, 10 Nov 2016 05:56:38 +0000 From: "Wang, Sunny (HPS SW)" To: Ruiyu Ni , "edk2-devel@lists.01.org" CC: "Wang, Sunny (HPS SW)" , "Haskell, Darrell" Thread-Topic: [edk2] [PATCH v2 0/9] Defer 3rd party images loading to after EndOfDxe Thread-Index: AQHSObvQoe5T5mqEfEKPwoSdfv/cIKDRucrg Date: Thu, 10 Nov 2016 05:56:38 +0000 Message-ID: References: <20161108122928.53984-1-ruiyu.ni@intel.com> In-Reply-To: <20161108122928.53984-1-ruiyu.ni@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sunnywang@hpe.com; x-originating-ip: [15.211.131.5] x-microsoft-exchange-diagnostics: 1; CS1PR84MB0295; 7:65BDiaUVFmpEPMh4nm5y2cBxaJ4B4QTHVI0Uo1Yvu0fFgMxxia0/J8Iy2fqpf/eOGUfpcz6JngEIlp1rXPhqOP/J3vXeADitViOHQejxii6kq1cBoK6/0JyEdzxNPY4TLYcjkHa21zeWuNL+MxVkOs1IEYTILrg1dLPTGDq/fMY9PgF1/Frui7Foirmm+TuEOvzrNWl0YGnthX/q0vE2eUT+xNOCm5lO9HxlnnxqEcZrV7zwSWorUZEC5nd5cvWM7LZovUEfLcbdmB2zZGY8rADN4O6f4qUMV+zyhi5oIHEq3vJluRlx4V/Z7g450UYP9ejvPfV/mANAslB4c3gX1pDiMO/pQ6SdItRS1UltRh4= x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(6029001)(6009001)(7916002)(189002)(13464003)(199003)(377454003)(101416001)(6116002)(3846002)(50986999)(102836003)(74316002)(305945005)(106116001)(586003)(106356001)(77096005)(9686002)(68736007)(54356999)(76176999)(8936002)(5001770100001)(99286002)(97736004)(2501003)(105586002)(3280700002)(7696004)(2950100002)(81156014)(81166006)(8676002)(5660300001)(7846002)(3660700001)(33656002)(7736002)(92566002)(2900100001)(4326007)(86362001)(66066001)(189998001)(87936001)(122556002)(2906002)(229853002)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:CS1PR84MB0295; H:CS1PR84MB0295.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; x-ms-office365-filtering-correlation-id: 344d19b1-9db3-4506-276c-08d4092e560b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0295; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(162533806227266); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CS1PR84MB0295; BCL:0; PCL:0; RULEID:; SRVR:CS1PR84MB0295; x-forefront-prvs: 01221E3973 received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2016 05:56:38.1198 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0295 Subject: Re: [PATCH v2 0/9] Defer 3rd party images loading to after EndOfDxe X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2016 05:56:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed all BDS related patches including PlatformBds libraries. All look = good to me. =20 Thanks for offline addressing my PlatformBds related questions. Reviewed-by: Sunny Wang -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ruiy= u Ni Sent: Tuesday, November 08, 2016 8:29 PM To: edk2-devel@lists.01.org Subject: [edk2] [PATCH v2 0/9] Defer 3rd party images loading to after EndO= fDxe The patches change the default image loading policy by deferring 3rd party = images loading to after EndOfDxe and add a new BDS API to dispatch the defe= rred images. Platform needs to call the new BDS API EfiBootManagerDispatchDeferredImages after EndOfDxe to ensure that any defe= rred images are loaded. v2 puts the deferred images checking in DEBUG_CODE macro, corrects a typo o= f function name, and puts CpuDeadLoop() after ASSERT(FALSE). v2 includes all the platform changes. Ruiyu Ni (9): MdeModulePkg/SecurityStubDxe: Defer 3rd party image before EndOfDxe MdeModulePkg/UefiBootManager: Add EfiBootManagerDispatchDeferredImages MdeModulePkg/BdsDxe: Check deferred images before booting to OS MdeModulePkg/SecurityStubDxe: Report failure if image is load earlier ArmVirPkg/PlatformBds: Dispatch deferred images after EndOfDxe OvmfPkg/PlatformBds: Dispatch deferred images after EndOfDxe CorebootPayload/PlatformBds: Dispatch deferred images after EndOfDxe QuarkPlatformPkg/PlatformBds: Dispatch deferred images after EndOfDxe Nt32Pkg/PlatformBds: Dispatch deferred images after EndOfDxe .../Library/PlatformBootManagerLib/PlatformBm.c | 5 + .../PlatformBootManagerLib/PlatformBootManager.c | 5 + MdeModulePkg/Include/Library/UefiBootManagerLib.h | 13 + MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c | 113 ++++++ .../Library/UefiBootManagerLib/InternalBm.h | 1 + .../UefiBootManagerLib/UefiBootManagerLib.inf | 1 + MdeModulePkg/Universal/BdsDxe/Bds.h | 4 +- MdeModulePkg/Universal/BdsDxe/BdsDxe.inf | 2 + MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 90 +++++ .../SecurityStubDxe/Defer3rdPartyImageLoad.c | 414 +++++++++++++++++= ++++ .../SecurityStubDxe/Defer3rdPartyImageLoad.h | 95 +++++ .../Universal/SecurityStubDxe/SecurityStub.c | 14 +- .../Universal/SecurityStubDxe/SecurityStubDxe.inf | 11 +- .../PlatformBootManagerLib/PlatformBootManager.c | 5 + .../Library/PlatformBootManagerLib/BdsPlatform.c | 5 + .../PlatformBootManagerLib/PlatformBootManager.c | 7 +- 16 files changed, 781 insertions(+), 4 deletions(-) create mode 100644 Md= eModulePkg/Universal/SecurityStubDxe/Defer3rdPartyImageLoad.c create mode 100644 MdeModulePkg/Universal/SecurityStubDxe/Defer3rdPartyIma= geLoad.h -- 2.9.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel