From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=vincent.zimmer@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7CBFC2112B1FA for ; Wed, 12 Sep 2018 11:52:18 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Sep 2018 11:52:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,365,1531810800"; d="scan'208";a="72448919" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga007.jf.intel.com with ESMTP; 12 Sep 2018 11:50:11 -0700 Received: from orsmsx155.amr.corp.intel.com (10.22.240.21) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 12 Sep 2018 11:50:11 -0700 Received: from orsmsx105.amr.corp.intel.com ([169.254.2.117]) by ORSMSX155.amr.corp.intel.com ([169.254.7.64]) with mapi id 14.03.0319.002; Wed, 12 Sep 2018 11:50:11 -0700 From: "Zimmer, Vincent" To: "Carsey, Jaben" CC: Ard Biesheuvel , "edk2-devel@lists.01.org" , "Ni, Ruiyu" , "Dong, Eric" , Andrew Fish , "agraf@suse.de" , "Richardson, Brian" , "Kinney, Michael D" , Laszlo Ersek , "Zeng, Star" Thread-Topic: [edk2] [PATCH 0/4] MdeModulePkg: add support for dispatching foreign arch PE/COFF images Thread-Index: AQHUSpuyRs3hK6CV6Ua7AMBQlKEotqTtQDGA//+9c4U= Date: Wed, 12 Sep 2018 18:50:09 +0000 Message-ID: References: <20180912132151.4258-1-ard.biesheuvel@linaro.org>, In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 Subject: Re: [PATCH 0/4] MdeModulePkg: add support for dispatching foreign arch PE/COFF images X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2018 18:52:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I like this approach too Vincent > On Sep 12, 2018, at 5:48 PM, Carsey, Jaben wrote= : >=20 > Reviewed-by: Jaben Carsey >=20 > Code looks good to me. >=20 >=20 >> -----Original Message----- >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >> Ard Biesheuvel >> Sent: Wednesday, September 12, 2018 6:22 AM >> To: edk2-devel@lists.01.org >> Cc: Ni, Ruiyu ; Zimmer, Vincent >> ; Dong, Eric ; Andrew >> Fish ; agraf@suse.de; Richardson, Brian >> ; Kinney, Michael D >> ; Laszlo Ersek ; Zeng, >> Star >> Subject: [edk2] [PATCH 0/4] MdeModulePkg: add support for dispatching >> foreign arch PE/COFF images >>=20 >> Add the basic plumbing to DXE core, the PCI bus driver and the boot mana= ger >> to allow PE/COFF images to be dispatched that target an architecture tha= t is >> not native for the platform, but which is supported by an emulator. >>=20 >> One implementation of such an emulator can be found here: >> https://github.com/ardbiesheuvel/X86EmulatorPkg >>=20 >> Cc: Zimmer Vincent >> Cc: Brian Richardson >> Cc: Michael D Kinney >> Cc: Andrew Fish >> Cc: Laszlo Ersek >> Cc: Leif Lindholm >> Cc: Star Zeng >> Cc: Eric Dong >> Cc: Ruiyu Ni >>=20 >> Ard Biesheuvel (4): >> MdeModulePkg: introduce PE/COFF image emulator protocol >> MdeModulePkg/DxeCore: invoke the emulator protocol for foreign images >> MdeModulePkg/PciBusDxe: invoke PE/COFF emulator for foreign option >> ROMs >> MdeModulePkg/UefiBootManagerLib: allow foreign Driver#### images >>=20 >> MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h | 1 + >> MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf | 1 + >> .../Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 16 +++++- >> MdeModulePkg/Core/Dxe/DxeMain.h | 3 ++ >> MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + >> MdeModulePkg/Core/Dxe/Image/Image.c | 39 +++++++++++--- >> .../Include/Protocol/PeCoffImageEmulator.h | 51 +++++++++++++++++++ >> .../Library/UefiBootManagerLib/BmLoadOption.c | 26 +++++++++- >> .../Library/UefiBootManagerLib/InternalBm.h | 1 + >> .../UefiBootManagerLib/UefiBootManagerLib.inf | 1 + >> MdeModulePkg/MdeModulePkg.dec | 4 ++ >> 11 files changed, 136 insertions(+), 8 deletions(-) >> create mode 100644 >> MdeModulePkg/Include/Protocol/PeCoffImageEmulator.h >>=20 >> -- >> 2.17.1 >>=20 >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel