From: Juergen Gross <jgross@suse.com>
To: grub-devel@gnu.org
Cc: Juergen Gross <jgross@suse.com>,
phcoder@gmail.com, daniel.kiper@oracle.com, mchang@suse.com,
xen-devel@lists.xen.org
Subject: [PATCH v3 00/10] grub-xen: support booting huge pv-domains
Date: Wed, 17 Feb 2016 18:19:27 +0100 [thread overview]
Message-ID: <1455729577-23702-1-git-send-email-jgross@suse.com> (raw)
The Xen hypervisor supports starting a dom0 with large memory (up to
the TB range) by not including the initrd and p2m list in the initial
kernel mapping. Especially the p2m list can grow larger than the
available virtual space in the initial mapping.
The started kernel is indicating the support of each feature via
elf notes.
This series enables grub-xen to do the same as the hypervisor.
Tested with:
- 32 bit domU (kernel not supporting unmapped initrd)
- 32 bit domU (kernel supporting unmapped initrd)
- 1 GB 64 bit domU (kernel supporting unmapped initrd, not p2m)
- 1 GB 64 bit domU (kernel supporting unmapped initrd and p2m)
- 900GB 64 bit domU (kernel supporting unmapped initrd and p2m)
Changes in V3:
- added new patch 1 (free memory in case of error) as requested by
Daniel Kiper
- added new patch 2 (avoid global variables) as requested by Daniel Kiper
- added new patch 3 (use constants for elf notes) as requested by Daniel Kiper
- added new patch 4 (sync with new Xen headers) in order to use constants
in assembly code
- modified patch 9 (was patch 5) to use constants instead of numbers and
added lots of comments to assembly code as requested by Daniel Kiper
Changes in V2:
- rebased patch 5 to current master
Juergen Gross (10):
xen: make xen loader callable multiple times
xen: reduce number of global variables in xen loader
xen: add elfnote.h to avoid using numbers instead of constants
xen: synchronize xen header
xen: factor out p2m list allocation into separate function
xen: factor out allocation of special pages into separate function
xen: factor out allocation of page tables into separate function
xen: add capability to load initrd outside of initial mapping
xen: modify page table construction
xen: add capability to load p2m list outside of kernel mapping
grub-core/lib/i386/xen/relocator.S | 87 ++--
grub-core/lib/x86_64/xen/relocator.S | 134 +++---
grub-core/lib/xen/relocator.c | 25 +-
grub-core/loader/i386/xen.c | 778 +++++++++++++++++++++++------------
grub-core/loader/i386/xen_fileXX.c | 43 +-
include/grub/i386/memory.h | 7 +
include/grub/xen/relocator.h | 6 +-
include/grub/xen_file.h | 3 +
include/xen/arch-x86/xen-x86_32.h | 22 +-
include/xen/arch-x86/xen-x86_64.h | 8 +-
include/xen/elfnote.h | 281 +++++++++++++
include/xen/xen.h | 125 ++++--
12 files changed, 1070 insertions(+), 449 deletions(-)
create mode 100644 include/xen/elfnote.h
--
2.6.2
next reply other threads:[~2016-02-17 17:19 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 17:19 Juergen Gross [this message]
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-19 5:21 ` Juergen Gross
2016-02-19 5:21 ` Juergen Gross
2016-02-18 16:58 ` Daniel Kiper
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 ` [Xen-devel] " Juergen Gross
2016-02-19 16:20 ` Lennart Sorensen
2016-02-19 16:20 ` Lennart Sorensen
2016-02-19 4:59 ` Juergen Gross
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-17 17:19 ` 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 17:20 ` Daniel Kiper
2016-02-18 17:20 ` Daniel Kiper
2016-02-18 12:43 ` 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=1455729577-23702-1-git-send-email-jgross@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.