diff options
Diffstat (limited to 'arch/x86/include/asm/hypervisor.h')
-rw-r--r-- | arch/x86/include/asm/hypervisor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/hypervisor.h b/arch/x86/include/asm/hypervisor.h index ff2546ce7178..0c6f7af7fda8 100644 --- a/arch/x86/include/asm/hypervisor.h +++ b/arch/x86/include/asm/hypervisor.h | |||
@@ -20,6 +20,8 @@ | |||
20 | #ifndef _ASM_X86_HYPERVISOR_H | 20 | #ifndef _ASM_X86_HYPERVISOR_H |
21 | #define _ASM_X86_HYPERVISOR_H | 21 | #define _ASM_X86_HYPERVISOR_H |
22 | 22 | ||
23 | #include <asm/kvm_para.h> | ||
24 | |||
23 | extern void init_hypervisor(struct cpuinfo_x86 *c); | 25 | extern void init_hypervisor(struct cpuinfo_x86 *c); |
24 | extern void init_hypervisor_platform(void); | 26 | extern void init_hypervisor_platform(void); |
25 | 27 | ||
@@ -47,4 +49,11 @@ extern const struct hypervisor_x86 x86_hyper_vmware; | |||
47 | extern const struct hypervisor_x86 x86_hyper_ms_hyperv; | 49 | extern const struct hypervisor_x86 x86_hyper_ms_hyperv; |
48 | extern const struct hypervisor_x86 x86_hyper_xen_hvm; | 50 | extern const struct hypervisor_x86 x86_hyper_xen_hvm; |
49 | 51 | ||
52 | static inline bool hypervisor_x2apic_available(void) | ||
53 | { | ||
54 | if (kvm_para_available()) | ||
55 | return true; | ||
56 | return false; | ||
57 | } | ||
58 | |||
50 | #endif | 59 | #endif |