projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3201b5d
)
KVM: SVM: No need to unprotect memory during event injection when using npt
author
Avi Kivity
<avi@qumranet.com>
Thu, 28 Aug 2008 15:27:15 +0000
(18:27 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Wed, 15 Oct 2008 08:15:24 +0000
(10:15 +0200)
No memory is protected anyway.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index be86c096385bf8cce5e2217566ea28d345a23c2a..60228888d1b5c517deaf6d179a5031bae1af9767 100644
(file)
--- 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)
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);
}