mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
KVM: SVM: Drop tlb flush workaround in npt
It is no longer possible to reproduce the problem any more, so presumably it has been fixed. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
cb142eb743
commit
52c7847d12
1 changed files with 2 additions and 11 deletions
|
@ -1187,17 +1187,8 @@ static int pf_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
|
||||||
error_code = svm->vmcb->control.exit_info_1;
|
error_code = svm->vmcb->control.exit_info_1;
|
||||||
|
|
||||||
trace_kvm_page_fault(fault_address, error_code);
|
trace_kvm_page_fault(fault_address, error_code);
|
||||||
/*
|
if (!npt_enabled && kvm_event_needs_reinjection(&svm->vcpu))
|
||||||
* FIXME: Tis shouldn't be necessary here, but there is a flush
|
kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address);
|
||||||
* missing in the MMU code. Until we find this bug, flush the
|
|
||||||
* complete TLB here on an NPF
|
|
||||||
*/
|
|
||||||
if (npt_enabled)
|
|
||||||
svm_flush_tlb(&svm->vcpu);
|
|
||||||
else {
|
|
||||||
if (kvm_event_needs_reinjection(&svm->vcpu))
|
|
||||||
kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address);
|
|
||||||
}
|
|
||||||
return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code);
|
return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue