From: "Jan Beulich" Subject: Re: [PATCH for-4.5 V9] Add ARM EFI boot support Date: Mon, 29 Sep 2014 09:47:25 +0100 Message-ID: <542938BD020000780003A4A4@mail.emea.novell.com> References: <1411770301-3263-1-git-send-email-roy.franz@linaro.org> <1411770301-3263-2-git-send-email-roy.franz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411770301-3263-2-git-send-email-roy.franz@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir@xen.org, ian.campbell@citrix.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 27.09.14 at 00:25, wrote: > This patch adds EFI boot support for ARM based on the previous refactoring of > the x86 EFI boot code. All ARM specific code is in the ARM efi-boot.h header > file, with the main EFI entry point common/efi/boot.c. The PE/COFF header > is > open-coded in head.S, which allows us to have a single binary be both an EFI > executable and a normal arm64 IMAGE file. There is currently no PE/COFF > toolchain support for arm64, so it is not possible to create the PE/COFF > header > in the same manner as on x86. This also simplifies the build as compared to > x86, as we always build the same executable, whereas x86 builds 2. An ARM > version of efi-bind.h is added, which is based on the x86_64 version with the > x86 specific portions removed. The Makefile in common/efi is different for > x86 > and ARM, as for ARM we always build in EFI support. > NR_MEM_BANKS is increased, as memory regions are now added from the UEFI > memory map, > rather than memory banks from a DTB. The UEFI memory map may be fragmented > so a larger > number of regions will be used. > > Signed-off-by: Roy Franz For the non-ARM parts: Acked-by: Jan Beulich Two minor comments nevertheless: > --- a/xen/common/efi/boot.c > +++ b/xen/common/efi/boot.c > @@ -2,6 +2,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -18,9 +19,16 @@ > #include > #include > #include > +#ifdef CONFIG_X86 The context above shows xen/vga.h - this surely isn't needed in the common code anymore? > --- /dev/null > +++ b/xen/include/asm-arm/arm64/efibind.h > @@ -0,0 +1,216 @@ > +/*++ > + > +Copyright (c) 1998 Intel Corporation > + > +Module Name: > + > + efefind.h Is this so badly misspelled in the original? Jan