From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VYenU-0003av-Df for mharc-grub-devel@gnu.org; Tue, 22 Oct 2013 12:27:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYenK-0003ZB-Aw for grub-devel@gnu.org; Tue, 22 Oct 2013 12:27:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYen3-00070U-51 for grub-devel@gnu.org; Tue, 22 Oct 2013 12:26:58 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:17887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYen2-00070P-UQ for grub-devel@gnu.org; Tue, 22 Oct 2013 12:26:41 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r9MGQZKI029231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Oct 2013 16:26:36 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9MGQY4m019737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Oct 2013 16:26:35 GMT Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9MGQYfs019728; Tue, 22 Oct 2013 16:26:34 GMT Received: from phenom.dumpdata.com (/50.195.21.189) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 22 Oct 2013 09:26:34 -0700 Received: by phenom.dumpdata.com (Postfix, from userid 1000) id AC69E1C253F; Tue, 22 Oct 2013 12:26:32 -0400 (EDT) Date: Tue, 22 Oct 2013 12:26:32 -0400 From: Konrad Rzeszutek Wilk To: Ian Campbell Subject: Re: [Xen-devel] EFI and multiboot2 devlopment work for Xen Message-ID: <20131022162632.GB19189@phenom.dumpdata.com> References: <20131021185758.GD3626@debian70-amd64.local.net-space.pl> <1382433990.1657.66.camel@hastur.hellion.org.uk> <5266620602000078000FCA48@nat28.tlf.novell.com> <1382435127.1657.70.camel@hastur.hellion.org.uk> <526668A502000078000FCA7B@nat28.tlf.novell.com> <20131022134252.GA27302@phenom.dumpdata.com> <1382449985.18283.12.camel@hastur.hellion.org.uk> <20131022140947.GA17829@phenom.dumpdata.com> <1382451868.18283.21.camel@hastur.hellion.org.uk> <1382455358.18283.31.camel@hastur.hellion.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382455358.18283.31.camel@hastur.hellion.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 Cc: grub-devel@gnu.org, keir@xen.org, david.woodhouse@intel.com, stefano.stabellini@eu.citrix.com, Daniel Kiper , linux-kernel@vger.kernel.org, xen-devel@lists.xen.org, Jan Beulich , ross.philipson@citrix.com, richard.l.maliszewski@intel.com, boris.ostrovsky@oracle.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 16:27:07 -0000 On Tue, Oct 22, 2013 at 04:22:38PM +0100, Ian Campbell wrote: > On Tue, 2013-10-22 at 15:24 +0100, Ian Campbell wrote: > > On Tue, 2013-10-22 at 10:09 -0400, Konrad Rzeszutek Wilk wrote: > > > > > So it can be booted the same way as xen.efi. But my understanding is > > > that folks prefer a bootloader instead of loading the bzImage in an > > > NVRAM of a platform with pre-set parameters. Hence that mechanism > > > is not used by the majority of users. > > > > My understanding is that they prefer a bootloader which can launch Linux > > as a PE/COFF image, i.e. the linuxefi thing. > > What I'm trying to say here is that from the xen.efi or linux.efi point > of view it can't tell if it was launched directly from the EFI shell or > by some intermediate bootloader (i.e. by grub2's linuxefi command). It can (at least in Linux). There are two entry points in the Linux kernel and - one when it is launched from 'linuxefi' (See efi_stub_entry in arch/x86/boot/compressed/head_64.S), the other when it is launched from an EFI shell - see efi_pe_entry in arch/x86/boot/compressed/head_64.S. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754544Ab3JVQ0s (ORCPT ); Tue, 22 Oct 2013 12:26:48 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:24681 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754254Ab3JVQ0r (ORCPT ); Tue, 22 Oct 2013 12:26:47 -0400 Date: Tue, 22 Oct 2013 12:26:32 -0400 From: Konrad Rzeszutek Wilk To: Ian Campbell Cc: grub-devel@gnu.org, keir@xen.org, david.woodhouse@intel.com, stefano.stabellini@eu.citrix.com, Daniel Kiper , linux-kernel@vger.kernel.org, xen-devel@lists.xen.org, Jan Beulich , Peter Jones , ross.philipson@citrix.com, boris.ostrovsky@oracle.com, richard.l.maliszewski@intel.com Subject: Re: [Xen-devel] EFI and multiboot2 devlopment work for Xen Message-ID: <20131022162632.GB19189@phenom.dumpdata.com> References: <20131021185758.GD3626@debian70-amd64.local.net-space.pl> <1382433990.1657.66.camel@hastur.hellion.org.uk> <5266620602000078000FCA48@nat28.tlf.novell.com> <1382435127.1657.70.camel@hastur.hellion.org.uk> <526668A502000078000FCA7B@nat28.tlf.novell.com> <20131022134252.GA27302@phenom.dumpdata.com> <1382449985.18283.12.camel@hastur.hellion.org.uk> <20131022140947.GA17829@phenom.dumpdata.com> <1382451868.18283.21.camel@hastur.hellion.org.uk> <1382455358.18283.31.camel@hastur.hellion.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382455358.18283.31.camel@hastur.hellion.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 22, 2013 at 04:22:38PM +0100, Ian Campbell wrote: > On Tue, 2013-10-22 at 15:24 +0100, Ian Campbell wrote: > > On Tue, 2013-10-22 at 10:09 -0400, Konrad Rzeszutek Wilk wrote: > > > > > So it can be booted the same way as xen.efi. But my understanding is > > > that folks prefer a bootloader instead of loading the bzImage in an > > > NVRAM of a platform with pre-set parameters. Hence that mechanism > > > is not used by the majority of users. > > > > My understanding is that they prefer a bootloader which can launch Linux > > as a PE/COFF image, i.e. the linuxefi thing. > > What I'm trying to say here is that from the xen.efi or linux.efi point > of view it can't tell if it was launched directly from the EFI shell or > by some intermediate bootloader (i.e. by grub2's linuxefi command). It can (at least in Linux). There are two entry points in the Linux kernel and - one when it is launched from 'linuxefi' (See efi_stub_entry in arch/x86/boot/compressed/head_64.S), the other when it is launched from an EFI shell - see efi_pe_entry in arch/x86/boot/compressed/head_64.S.