diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2018-06-08 11:40:38 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2018-06-19 14:51:00 +0300 |
commit | 1fe83888a2b776c204cb06629700adfb8e9cc123 (patch) | |
tree | 3d7ad3e848fceb53b69bc727af09b03839520af0 /arch/x86/xen/enlighten.c | |
parent | 7f47e1c52d0c850cbd24aab763ce6bab11bdb4b2 (diff) | |
download | linux-1fe83888a2b776c204cb06629700adfb8e9cc123.tar.xz |
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.c')
-rw-r--r-- | arch/x86/xen/enlighten.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index c9081c6671f0..3b5318505c69 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -65,6 +65,13 @@ __read_mostly int xen_have_vector_callback; EXPORT_SYMBOL_GPL(xen_have_vector_callback); /* + * NB: needs to live in .data because it's used by xen_prepare_pvh which runs + * before clearing the bss. + */ +uint32_t xen_start_flags __attribute__((section(".data"))) = 0; +EXPORT_SYMBOL(xen_start_flags); + +/* * Point at some empty memory to start with. We map the real shared_info * page as soon as fixmap is up and running. */ |