summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten_pvh.c
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2018-06-08 10:40:38 +0200
committerJuergen Gross <jgross@suse.com>2018-06-19 13:51:00 +0200
commit1fe83888a2b776c204cb06629700adfb8e9cc123 (patch)
tree3d7ad3e848fceb53b69bc727af09b03839520af0 /arch/x86/xen/enlighten_pvh.c
parent7f47e1c52d0c850cbd24aab763ce6bab11bdb4b2 (diff)
downloadlinux-1fe83888a2b776c204cb06629700adfb8e9cc123.tar.bz2
xen: share start flags between PV and PVH
Use a global variable to store the start flags for both PV and PVH. This allows the xen_initial_domain macro to work properly on PVH. Note that ARM is also switched to use the new variable. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/x86/xen/enlighten_pvh.c')
-rw-r--r--arch/x86/xen/enlighten_pvh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c
index aa1c6a6831a9..c85d1a88f476 100644
--- a/arch/x86/xen/enlighten_pvh.c
+++ b/arch/x86/xen/enlighten_pvh.c
@@ -97,6 +97,7 @@ void __init xen_prepare_pvh(void)
}
xen_pvh = 1;
+ xen_start_flags = pvh_start_info.flags;
msr = cpuid_ebx(xen_cpuid_base() + 2);
pfn = __pa(hypercall_page);