提交 48d15039 编写于 作者: A Avi Kivity

KVM: SVM: No need to unprotect memory during event injection when using npt

No memory is protected anyway.
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 3201b5d9
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册