Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bBQMZ-0005Uw-Rw for mharc-grub-devel@gnu.org; Fri, 10 Jun 2016 13:36:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBQMW-0005TD-JX for grub-devel@gnu.org; Fri, 10 Jun 2016 13:36:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBQMT-0007Zr-EB for grub-devel@gnu.org; Fri, 10 Jun 2016 13:36:52 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:50609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBQMT-0007ZW-5F for grub-devel@gnu.org; Fri, 10 Jun 2016 13:36:49 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5AHahI9023690 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 17:36:44 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5AHagB8026014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 17:36:43 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u5AHae8s027502; Fri, 10 Jun 2016 17:36:41 GMT Received: from olila.local.net-space.pl (/10.175.176.23) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Jun 2016 10:36:39 -0700 Date: Fri, 10 Jun 2016 19:36:34 +0200 From: Daniel Kiper To: Andrew Cooper Cc: grub-devel@gnu.org, xen-devel@lists.xenproject.org, jgross@suse.com, eric.snowberg@oracle.com, arvidjaar@gmail.com, seth.goldberg@oracle.com, phcoder@gmail.com Subject: Re: [Xen-devel] [MULTIBOOT2 DOC PATCH 06/10] multiboot2: Add description of support for relocatable images Message-ID: <20160610173634.GE5490@olila.local.net-space.pl> References: <1465504244-17175-1-git-send-email-daniel.kiper@oracle.com> <1465504244-17175-7-git-send-email-daniel.kiper@oracle.com> <33053e4b-2c66-dc4f-6e5a-bfcb05bde590@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33053e4b-2c66-dc4f-6e5a-bfcb05bde590@citrix.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 17:36:53 -0000 On Thu, Jun 09, 2016 at 10:36:29PM +0100, Andrew Cooper wrote: > On 09/06/2016 21:30, Daniel Kiper wrote: > > Signed-off-by: Daniel Kiper > > --- > > doc/multiboot.texi | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > > doc/multiboot2.h | 24 ++++++++++++++++++++++ > > 2 files changed, 80 insertions(+) > > > > diff --git a/doc/multiboot.texi b/doc/multiboot.texi > > index 130176a..f1e0e09 100644 > > --- a/doc/multiboot.texi > > +++ b/doc/multiboot.texi > > @@ -359,6 +359,7 @@ executable header. > > * Console header tags:: > > * Module alignment tag:: > > * EFI boot services tag:: > > +* Relocatable header tag:: > > > > @end menu > > > > @@ -681,6 +682,47 @@ u32 | size = 8 | > > This tag indicates that payload supports starting without > > terminating boot services. > > > > +@node Relocatable header tag > > +@subsection Relocatable header tag > > + > > +@example > > +@group > > + +-------------------+ > > +u16 | type = 10 | > > +u16 | flags | > > +u32 | size = 24 | > > +u32 | min_addr | > > +u32 | max_addr | > > +u32 | align | > > +u32 | preference | > > + +-------------------+ > > +@end group > > +@end example > > + > > +This tag indicates that image is relocatable. > > + > > +The meaning of each field is as follows: > > + > > +@table @code > > +@item min_addr > > +Lowest possible physical address at which image should be loaded. > > +Boot loader cannot load any part of image below this address. > > "The bootloader". This and earlier comments show, what I know very well, that a/the English stuff is huge pain for me. Ehh... It looks that I should not update any docs... ;-))) Anyway, thank you for your comments! [...] > > +struct multiboot_header_tag_relocatable > > +{ > > + multiboot_uint16_t type; > > + multiboot_uint16_t flags; > > + multiboot_uint32_t size; > > + multiboot_uint32_t min_addr; > > + multiboot_uint32_t max_addr; > > 64bit multiboot2 payloads could reasonably expect to be able to have > themselves relocated about the 4G boundary. That is true but in general the multiboot2 protocol is 32-bit stuff. So, I prefer to stay in 32-bit domain. Just in case. If we need to use full blown 64-bit thing then, IMO, we should introduce new protocol (e.g. multiboot3) with full 64-bit support, probably compatible with 32-bit stuff to some extent. Daniel