]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pvh: Bootstrap PVH guest
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 6 Feb 2017 00:50:52 +0000 (19:50 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:37:47 +0000 (21:37 -0700)
commit7365a1d5b590888c33aff8065bc5a3d69cf2c75e
treeedc26bde9b576663935c6917bb07d646b61ce5b3
parentfc26f28a7b49a5bce7eb55d6f55996a6e553d032
xen/pvh: Bootstrap PVH guest

Start PVH guest at XEN_ELFNOTE_PHYS32_ENTRY address. Setup hypercall
page, initialize boot_params, enable early page tables.

Since this stub is executed before kernel entry point we cannot use
variables in .bss which is cleared by kernel. We explicitly place
variables that are initialized here into .data.

While adjusting xen_hvm_init_shared_info() make it use cpuid_e?x()
instead of cpuid() (wherever possible).

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
OraBug: 26662731

(cherry picked from commit 7243b93345f7f8de260e8f5b4670803e64fcbb00)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
arch/x86/xen/Kconfig
arch/x86/xen/Makefile
arch/x86/xen/enlighten.c
arch/x86/xen/xen-pvh.S [new file with mode: 0644]
include/xen/xen.h