diff options
| author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-03-14 18:35:38 +0100 | 
|---|---|---|
| committer | Juergen Gross <jgross@suse.com> | 2017-05-02 10:50:19 +0200 | 
| commit | 5e57f1d607d1cc0f54611162525ca6436e17e8b7 (patch) | |
| tree | 314ee415de2627f2577221a8a98cdce6914afbf7 /arch/x86/kernel | |
| parent | 52519f2af020b6b53b4e0cbb8cff71058ed434cd (diff) | |
| download | linux-5e57f1d607d1cc0f54611162525ca6436e17e8b7.tar.bz2 | |
x86/xen: add CONFIG_XEN_PV to Kconfig
All code to support Xen PV will get under this new option. For the
beginning, check for it in the common code.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/x86/kernel')
| -rw-r--r-- | arch/x86/kernel/cpu/hypervisor.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/process_64.c | 2 | 
2 files changed, 4 insertions, 2 deletions
| diff --git a/arch/x86/kernel/cpu/hypervisor.c b/arch/x86/kernel/cpu/hypervisor.c index a77f18d139c0..ce6fcc30f2ad 100644 --- a/arch/x86/kernel/cpu/hypervisor.c +++ b/arch/x86/kernel/cpu/hypervisor.c @@ -28,8 +28,10 @@  static const __initconst struct hypervisor_x86 * const hypervisors[] =  { -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_PV  	&x86_hyper_xen_pv, +#endif +#ifdef CONFIG_XEN_PVHVM  	&x86_hyper_xen_hvm,  #endif  	&x86_hyper_vmware, diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 825a1e47cf3e..b6840bf3940b 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -446,7 +446,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)  		     task_thread_info(prev_p)->flags & _TIF_WORK_CTXSW_PREV))  		__switch_to_xtra(prev_p, next_p, tss); -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_PV  	/*  	 * On Xen PV, IOPL bits in pt_regs->flags have no effect, and  	 * current_pt_regs()->flags may not match the current task's |