diff options
-rw-r--r-- | arch/x86/kvm/svm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 83c7ab1bdad8..8d7cb62ebef6 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -2588,8 +2588,6 @@ static void svm_flush_tlb(struct kvm_vcpu *vcpu) | |||
2588 | 2588 | ||
2589 | static void svm_prepare_guest_switch(struct kvm_vcpu *vcpu) | 2589 | static void svm_prepare_guest_switch(struct kvm_vcpu *vcpu) |
2590 | { | 2590 | { |
2591 | if (npt_enabled) | ||
2592 | vcpu->fpu_active = 1; | ||
2593 | } | 2591 | } |
2594 | 2592 | ||
2595 | static inline void sync_cr8_to_lapic(struct kvm_vcpu *vcpu) | 2593 | static inline void sync_cr8_to_lapic(struct kvm_vcpu *vcpu) |
@@ -2928,12 +2926,6 @@ static void svm_fpu_deactivate(struct kvm_vcpu *vcpu) | |||
2928 | { | 2926 | { |
2929 | struct vcpu_svm *svm = to_svm(vcpu); | 2927 | struct vcpu_svm *svm = to_svm(vcpu); |
2930 | 2928 | ||
2931 | if (npt_enabled) { | ||
2932 | /* hack: npt requires active fpu at this time */ | ||
2933 | vcpu->fpu_active = 1; | ||
2934 | return; | ||
2935 | } | ||
2936 | |||
2937 | update_cr0_intercept(svm); | 2929 | update_cr0_intercept(svm); |
2938 | svm->vmcb->control.intercept_exceptions |= 1 << NM_VECTOR; | 2930 | svm->vmcb->control.intercept_exceptions |= 1 << NM_VECTOR; |
2939 | } | 2931 | } |