]> git.ipfire.org Git - thirdparty/grub.git/commit
xen: add capability to load p2m list outside of kernel mapping
authorJuergen Gross <jgross@suse.com>
Thu, 3 Mar 2016 09:38:16 +0000 (10:38 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2016 14:22:06 +0000 (16:22 +0200)
commit0de3eeb6232db319812335ec02ea4cfb15aa2fef
tree9908a3bf0cd4f0fd827286b3d48629c6551ebda1
parentb67a95ecad9fd815ac39a5cbade93358975aa0f1
xen: add capability to load p2m list outside of kernel mapping

Modern pvops linux kernels support a p2m list not covered by the
kernel mapping. This capability is flagged by an elf-note specifying
the virtual address the kernel is expecting the p2m list to be mapped
to.

In case the elf-note is set by the kernel don't place the p2m list
into the kernel mapping, but map it to the given address. This will
allow to support domains with larger memory, as the kernel mapping is
limited to 2GB and a domain with huge memory in the TB range will have
a p2m list larger than this.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/i386/xen.c
grub-core/loader/i386/xen_fileXX.c
include/grub/xen_file.h