Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZQDbv-0005et-OF for mharc-grub-devel@gnu.org; Fri, 14 Aug 2015 07:57:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQDbs-0005dd-SO for grub-devel@gnu.org; Fri, 14 Aug 2015 07:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQDbn-00050L-O6 for grub-devel@gnu.org; Fri, 14 Aug 2015 07:57:20 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:51526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQDbn-00050D-HH for grub-devel@gnu.org; Fri, 14 Aug 2015 07:57:15 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t7EBv8nX025301 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Aug 2015 11:57:08 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t7EBv8Sh007619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 14 Aug 2015 11:57:08 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t7EBv85k031729; Fri, 14 Aug 2015 11:57:08 GMT Received: from olila.local.net-space.pl (/10.175.164.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 Aug 2015 04:57:07 -0700 Date: Fri, 14 Aug 2015 13:57:01 +0200 From: Daniel Kiper To: Konrad Rzeszutek Wilk Subject: Re: [PATCH v2 23/23] x86: add multiboot2 protocol support for relocatable images Message-ID: <20150814115701.GB8034@olila.local.net-space.pl> References: <1437402558-7313-1-git-send-email-daniel.kiper@oracle.com> <1437402558-7313-24-git-send-email-daniel.kiper@oracle.com> <20150811165658.GC32231@l.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150811165658.GC32231@l.oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0021.oracle.com [156.151.31.71] 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: jgross@suse.com, grub-devel@gnu.org, wei.liu2@citrix.com, keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, roy.franz@linaro.org, ning.sun@intel.com, david.vrabel@citrix.com, jbeulich@suse.com, phcoder@gmail.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org 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: Fri, 14 Aug 2015 11:57:22 -0000 On Tue, Aug 11, 2015 at 12:56:58PM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Jul 20, 2015 at 04:29:18PM +0200, Daniel Kiper wrote: > > Add multiboot2 protocol support for relocatable images. Only GRUB2 > > with relevant patches understands that feature. Older multiboot > > You may want to enumerate what those 'relevant' patches are. > > > protocol (regardless of version) compatible loaders ignore it > > and everything works as usual. > > > > Signed-off-by: Daniel Kiper > > --- > > xen/arch/x86/boot/head.S | 46 +++++++++++++++++++++++++++++-------- > > xen/arch/x86/x86_64/asm-offsets.c | 1 + > > xen/include/xen/multiboot2.h | 13 +++++++++++ > > 3 files changed, 50 insertions(+), 10 deletions(-) > > > > diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S > > index d484f68..2520e48 100644 > > --- a/xen/arch/x86/boot/head.S > > +++ b/xen/arch/x86/boot/head.S > > @@ -81,6 +81,13 @@ multiboot1_header_end: > > /* Align modules at page boundry. */ > > mb2ht_init MB2_HT(MODULE_ALIGN), MB2_HT(REQUIRED) > > > > + /* Load address preference. */ > > + mb2ht_init MB2_HT(RELOCATABLE), MB2_HT(OPTIONAL), \ > > + sym_phys(start), /* Min load address. */ \ > > We could go straight to __start? This specifies lowest load address not entry point. Daniel