]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: prefer memory map via start_info for PVH
authorJuergen Gross <jgross@suse.com>
Tue, 21 Jun 2022 07:23:12 +0000 (09:23 +0200)
committerJulien Grall <jgrall@amazon.com>
Mon, 4 Jul 2022 08:52:38 +0000 (09:52 +0100)
commit00c1c4c80cc90d5d6a2ad563e4de526bdb5ce62d
treeb06558cdf2d52b8ac145d486c9d4b935eac87a00
parentcb642fb0bba4a3d584b0b22764c2de37dad3d89d
mini-os: prefer memory map via start_info for PVH

Since some time now a guest started in PVH mode will get the memory
map from Xen via the start_info structure.

Modify the PVH initialization to prefer this memory map over the one
obtained via hypercall, as this will allow to add information to the
memory map for a new kernel when supporting kexec.

In case the start_info structure doesn't contain memory map information
fall back to the hypercall.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/mm.c
e820.c
include/e820.h