diff options
Diffstat (limited to 'arch/x86/include/asm/hypervisor.h')
-rw-r--r-- | arch/x86/include/asm/hypervisor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/hypervisor.h b/arch/x86/include/asm/hypervisor.h index 055ea9941dd5..67942b6ad4b7 100644 --- a/arch/x86/include/asm/hypervisor.h +++ b/arch/x86/include/asm/hypervisor.h | |||
@@ -43,6 +43,9 @@ struct hypervisor_x86 { | |||
43 | 43 | ||
44 | /* X2APIC detection (run once per boot) */ | 44 | /* X2APIC detection (run once per boot) */ |
45 | bool (*x2apic_available)(void); | 45 | bool (*x2apic_available)(void); |
46 | |||
47 | /* pin current vcpu to specified physical cpu (run rarely) */ | ||
48 | void (*pin_vcpu)(int); | ||
46 | }; | 49 | }; |
47 | 50 | ||
48 | extern const struct hypervisor_x86 *x86_hyper; | 51 | extern const struct hypervisor_x86 *x86_hyper; |
@@ -56,6 +59,7 @@ extern const struct hypervisor_x86 x86_hyper_kvm; | |||
56 | extern void init_hypervisor(struct cpuinfo_x86 *c); | 59 | extern void init_hypervisor(struct cpuinfo_x86 *c); |
57 | extern void init_hypervisor_platform(void); | 60 | extern void init_hypervisor_platform(void); |
58 | extern bool hypervisor_x2apic_available(void); | 61 | extern bool hypervisor_x2apic_available(void); |
62 | extern void hypervisor_pin_vcpu(int cpu); | ||
59 | #else | 63 | #else |
60 | static inline void init_hypervisor(struct cpuinfo_x86 *c) { } | 64 | static inline void init_hypervisor(struct cpuinfo_x86 *c) { } |
61 | static inline void init_hypervisor_platform(void) { } | 65 | static inline void init_hypervisor_platform(void) { } |