projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dadbfd
)
KVM: Optimize kvm_mmu_unprotect_page_virt() for tdp
author
Avi Kivity
<avi@redhat.com>
Thu, 27 Aug 2009 10:37:06 +0000
(13:37 +0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 07:46:56 +0000
(10:46 +0300)
We know no pages are protected, so we can short-circuit the whole thing
(including fairly nasty guest memory accesses).
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index 6f38178af926812d74db5633a0306d9f4da92f06..eca41ae9f453cda6dc61112ab925ce66cdb7fef3 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-2694,6
+2694,9
@@
int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva)
gpa_t gpa;
int r;
+ if (tdp_enabled)
+ return 0;
+
gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gva);
spin_lock(&vcpu->kvm->mmu_lock);