diff options
author | Avi Kivity <avi@qumranet.com> | 2008-08-28 11:27:15 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:24 -0400 |
commit | 48d150394999c542b2e828f03da226842950d46a (patch) | |
tree | 980bd74d0b9df6c68aa0244f679e7edbdc34fff7 /arch | |
parent | 3201b5d9f0f7ef392886cd76dcd2c69186d9d5cd (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index be86c096385b..60228888d1b5 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1021,7 +1021,7 @@ static int pf_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | |||
1021 | if (npt_enabled) | 1021 | if (npt_enabled) |
1022 | svm_flush_tlb(&svm->vcpu); | 1022 | svm_flush_tlb(&svm->vcpu); |
1023 | 1023 | ||
1024 | if (event_injection) | 1024 | if (!npt_enabled && event_injection) |
1025 | kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address); | 1025 | kvm_mmu_unprotect_page_virt(&svm->vcpu, fault_address); |
1026 | return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code); | 1026 | return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code); |
1027 | } | 1027 | } |