mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
KVM: SVM: No need to unprotect memory during event injection when using npt
No memory is protected anyway. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
3201b5d9f0
commit
48d1503949
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ static int pf_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
|
|||
if (npt_enabled)
|
||||
svm_flush_tlb(&svm->vcpu);
|
||||
|
||||
if (event_injection)
|
||||
if (!npt_enabled && event_injection)
|
||||
kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address);
|
||||
return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue