Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aWMbq-00083g-HP for mharc-grub-devel@gnu.org; Thu, 18 Feb 2016 06:18:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWMbo-00081q-Gc for grub-devel@gnu.org; Thu, 18 Feb 2016 06:18:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWMbk-0001nI-Gc for grub-devel@gnu.org; Thu, 18 Feb 2016 06:18:56 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:44319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWMbk-0001n5-9y for grub-devel@gnu.org; Thu, 18 Feb 2016 06:18:52 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1IBIo2H029974 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Feb 2016 11:18:51 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u1IBIodS009188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 18 Feb 2016 11:18:50 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u1IBIn3P001505; Thu, 18 Feb 2016 11:18:50 GMT Received: from olila.local.net-space.pl (/10.175.243.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 18 Feb 2016 03:18:49 -0800 Date: Thu, 18 Feb 2016 12:18:45 +0100 From: Daniel Kiper To: Juergen Gross Subject: Re: [PATCH v3 08/10] xen: add capability to load initrd outside of initial mapping Message-ID: <20160218111845.GD3482@olila.local.net-space.pl> References: <1455729577-23702-1-git-send-email-jgross@suse.com> <1455729577-23702-9-git-send-email-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455729577-23702-9-git-send-email-jgross@suse.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: 141.146.126.69 Cc: grub-devel@gnu.org, phcoder@gmail.com, mchang@suse.com, xen-devel@lists.xen.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: Thu, 18 Feb 2016 11:18:57 -0000 On Wed, Feb 17, 2016 at 06:19:35PM +0100, Juergen Gross wrote: > Modern pvops linux kernels support an initrd not covered by the initial > mapping. This capability is flagged by an elf-note. > > In case the elf-note is set by the kernel don't place the initrd into > the initial mapping. This will allow to load larger initrds and/or > support domains with larger memory, as the initial mapping is limited > to 2GB and it is containing the p2m list. > > Signed-off-by: Juergen Gross One nitpick. Reviewed-by: Daniel Kiper > --- > grub-core/loader/i386/xen.c | 61 ++++++++++++++++++++++++++++++-------- > grub-core/loader/i386/xen_fileXX.c | 3 ++ > include/grub/xen_file.h | 1 + > 3 files changed, 52 insertions(+), 13 deletions(-) > > diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c > index 3bcf4c8..7ac74f6 100644 > --- a/grub-core/loader/i386/xen.c > +++ b/grub-core/loader/i386/xen.c > @@ -58,6 +58,7 @@ struct xen_loader_state { > grub_uint64_t modules_target_start; > grub_size_t n_modules; > int loaded; > + int alloc_end_called; > }; > > static struct xen_loader_state xen_state; > @@ -320,6 +321,28 @@ grub_xen_pt_alloc (void) > } > > static grub_err_t > +grub_xen_alloc_end (void) Why is it called grub_xen_alloc_end()? Could we use just grub_xen_alloc()? Daniel