diff options
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 334b016267a9..f083b64814d8 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -358,9 +358,7 @@ static inline int cpu_has_vmx_ple(void) | |||
358 | 358 | ||
359 | static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm) | 359 | static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm) |
360 | { | 360 | { |
361 | return flexpriority_enabled && | 361 | return flexpriority_enabled && irqchip_in_kernel(kvm); |
362 | (cpu_has_vmx_virtualize_apic_accesses()) && | ||
363 | (irqchip_in_kernel(kvm)); | ||
364 | } | 362 | } |
365 | 363 | ||
366 | static inline int cpu_has_vmx_vpid(void) | 364 | static inline int cpu_has_vmx_vpid(void) |