aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 8f7751a66a2..944cc9c04b3 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1187,17 +1187,8 @@ static int pf_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1187 error_code = svm->vmcb->control.exit_info_1; 1187 error_code = svm->vmcb->control.exit_info_1;
1188 1188
1189 trace_kvm_page_fault(fault_address, error_code); 1189 trace_kvm_page_fault(fault_address, error_code);
1190 /* 1190 if (!npt_enabled && kvm_event_needs_reinjection(&svm->vcpu))
1191 * FIXME: Tis shouldn't be necessary here, but there is a flush 1191 kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address);
1192 * missing in the MMU code. Until we find this bug, flush the
1193 * complete TLB here on an NPF
1194 */
1195 if (npt_enabled)
1196 svm_flush_tlb(&svm->vcpu);
1197 else {
1198 if (kvm_event_needs_reinjection(&svm->vcpu))
1199 kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address);
1200 }
1201 return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code); 1192 return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code);
1202} 1193}
1203 1194