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:
4088bb3
)
KVM: Discard unnecessary kvm_mmu_flush_tlb() in kvm_mmu_load()
author
Sheng Yang
<sheng@linux.intel.com>
Thu, 9 Jul 2009 09:00:42 +0000
(17:00 +0800)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:33:14 +0000
(08:33 +0300)
set_cr3() should already cover the TLB flushing.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@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 f1f08159e11e5663dc21d6e6417c0253d1805602..87c67f4492795509a67640ad2e8af3b9f0de111a 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-2373,8
+2373,8
@@
int kvm_mmu_load(struct kvm_vcpu *vcpu)
spin_unlock(&vcpu->kvm->mmu_lock);
if (r)
goto out;
+ /* set_cr3() should ensure TLB has been flushed */
kvm_x86_ops->set_cr3(vcpu, vcpu->arch.mmu.root_hpa);
- kvm_mmu_flush_tlb(vcpu);
out:
return r;
}