All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: grub-devel@gnu.org, phcoder@gmail.com, mchang@suse.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v3 08/10] xen: add capability to load initrd outside of initial mapping
Date: Thu, 18 Feb 2016 13:43:33 +0100	[thread overview]
Message-ID: <56C5BC75.6010506@suse.com> (raw)
In-Reply-To: <20160218111845.GD3482@olila.local.net-space.pl>

On 18/02/16 12:18, Daniel Kiper wrote:
> 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 <jgross@suse.com>
> 
> One nitpick.
> 
> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
> 
>> ---
>>  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()?

We could, of course. I just wanted to make clear that this function will
do the allocations needed to be at the end of the allocation process.
Naming it grub_xen_alloc() would make it occur to be a very basic
allocation function, which just isn't true. What about
grub_xen_alloc_rest()?


Juergen


  parent reply	other threads:[~2016-02-18 12:43 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 17:19 [PATCH v3 00/10] grub-xen: support booting huge pv-domains Juergen Gross
2016-02-17 17:19 ` [PATCH v3 01/10] xen: make xen loader callable multiple times Juergen Gross
2016-02-18 10:12   ` Daniel Kiper
2016-02-18 10:32     ` Juergen Gross
2016-02-18 16:58       ` Daniel Kiper
2016-02-18 16:58       ` Daniel Kiper
2016-02-19  5:21         ` Juergen Gross
2016-02-19  5:21         ` Juergen Gross
2016-02-17 17:19 ` [PATCH v3 02/10] xen: reduce number of global variables in xen loader Juergen Gross
2016-02-18 10:22   ` Daniel Kiper
2016-02-18 10:34     ` Juergen Gross
2016-02-18 17:00       ` Lennart Sorensen
2016-02-19  4:59         ` Juergen Gross
2016-02-19  4:59         ` [Xen-devel] " Juergen Gross
2016-02-19 16:20           ` Lennart Sorensen
2016-02-19 16:20           ` Lennart Sorensen
2016-02-18 17:00       ` Lennart Sorensen
2016-02-18 17:13       ` Daniel Kiper
2016-02-18 17:13       ` Daniel Kiper
2016-02-18 10:22   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 03/10] xen: add elfnote.h to avoid using numbers instead of constants Juergen Gross
2016-02-18 10:30   ` Daniel Kiper
2016-02-18 10:35     ` Juergen Gross
2016-02-18 17:15       ` Daniel Kiper
2016-02-18 17:15       ` Daniel Kiper
2016-02-17 17:19 ` Juergen Gross
2016-02-17 17:19 ` [PATCH v3 04/10] xen: synchronize xen header Juergen Gross
2016-02-18 10:33   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 05/10] xen: factor out p2m list allocation into separate function Juergen Gross
2016-02-17 17:19 ` Juergen Gross
2016-02-18 10:39   ` Daniel Kiper
2016-02-18 10:39   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 06/10] xen: factor out allocation of special pages " Juergen Gross
2016-02-18 10:42   ` Daniel Kiper
2016-02-18 10:42   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 07/10] xen: factor out allocation of page tables " Juergen Gross
2016-02-18 10:50   ` Daniel Kiper
2016-02-18 10:50   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 08/10] xen: add capability to load initrd outside of initial mapping Juergen Gross
2016-02-18 11:18   ` Daniel Kiper
2016-02-18 11:18   ` Daniel Kiper
2016-02-18 12:43     ` Juergen Gross
2016-02-18 12:43     ` Juergen Gross [this message]
2016-02-18 17:20       ` Daniel Kiper
2016-02-18 17:20       ` Daniel Kiper
2016-02-17 17:19 ` Juergen Gross
2016-02-17 17:19 ` [PATCH v3 09/10] xen: modify page table construction Juergen Gross
2016-02-18 16:40   ` Daniel Kiper
2016-02-19  5:20     ` Juergen Gross
2016-02-19  5:20     ` Juergen Gross
2016-02-18 16:40   ` Daniel Kiper
2016-02-17 17:19 ` [PATCH v3 10/10] xen: add capability to load p2m list outside of kernel mapping Juergen Gross
2016-02-18 16:44   ` Daniel Kiper
2016-02-18 16:44   ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56C5BC75.6010506@suse.com \
    --to=jgross@suse.com \
    --cc=daniel.kiper@oracle.com \
    --cc=grub-devel@gnu.org \
    --cc=mchang@suse.com \
    --cc=phcoder@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.