From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.12938.1582891342924969990 for ; Fri, 28 Feb 2020 04:02:22 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2020 04:02:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,495,1574150400"; d="scan'208";a="437399333" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga005.fm.intel.com with ESMTP; 28 Feb 2020 04:02:22 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 28 Feb 2020 04:02:22 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 28 Feb 2020 20:02:20 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Fri, 28 Feb 2020 20:02:20 +0800 From: "Liming Gao" To: "devel@edk2.groups.io" , "ard.biesheuvel@linaro.org" , "Wu, Hao A" , "Wang, Jian J" , "Gao, Zhichao" , "Ni, Ray" CC: Laszlo Ersek , Leif Lindholm , "Kinney, Michael D" Subject: Re: [edk2-devel] [PATCH v3 5/6] MdeModulePkg/DxeCore: defer PE/COFF emulator registration to StartImage Thread-Topic: [edk2-devel] [PATCH v3 5/6] MdeModulePkg/DxeCore: defer PE/COFF emulator registration to StartImage Thread-Index: AQHV7N0qkPJwQCJQwE6N2acfLpjgF6guwdcAgAHCMbA= Date: Fri, 28 Feb 2020 12:02:20 +0000 Message-ID: References: <20200226194343.2985-1-ard.biesheuvel@linaro.org> <20200226194343.2985-6-ard.biesheuvel@linaro.org> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QXJkOg0KICBJIHRoaW5rIHRoaXMgY2hhbmdlIGlzIE9LLiBBY2stYnk6IExpbWluZyBHYW8gPGxp bWluZy5nYW9AaW50ZWwuY29tPg0KDQpUaGFua3MNCkxpbWluZw0KPiAtLS0tLU9yaWdpbmFsIE1l c3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXZlbEBlZGsyLmdyb3Vwcy5pbyA8ZGV2ZWxAZWRrMi5ncm91 cHMuaW8+IE9uIEJlaGFsZiBPZiBBcmQgQmllc2hldXZlbA0KPiBTZW50OiBGcmlkYXksIEZlYnJ1 YXJ5IDI4LCAyMDIwIDE6MTEgQU0NCj4gVG86IGVkazItZGV2ZWwtZ3JvdXBzLWlvIDxkZXZlbEBl ZGsyLmdyb3Vwcy5pbz47IFd1LCBIYW8gQSA8aGFvLmEud3VAaW50ZWwuY29tPjsgV2FuZywgSmlh biBKIDxqaWFuLmoud2FuZ0BpbnRlbC5jb20+OyBHYW8sDQo+IFpoaWNoYW8gPHpoaWNoYW8uZ2Fv QGludGVsLmNvbT47IE5pLCBSYXkgPHJheS5uaUBpbnRlbC5jb20+DQo+IENjOiBMYXN6bG8gRXJz ZWsgPGxlcnNla0ByZWRoYXQuY29tPjsgTGVpZiBMaW5kaG9sbSA8bGVpZkBudXZpYWluYy5jb20+ OyBLaW5uZXks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