diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-07-09 05:00:42 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:14 -0400 |
commit | 3662cb1cd6ed26873ca808f3e16cc54246ad40ca (patch) | |
tree | ecc11fa956e94cd3599f1bf5998ab54528f3fba1 /arch/x86/kvm/mmu.c | |
parent | 4088bb3caee82086fd85a844604274f6237f66a7 (diff) |
KVM: Discard unnecessary kvm_mmu_flush_tlb() in kvm_mmu_load()
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>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index f1f08159e11e..87c67f449279 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2373,8 +2373,8 @@ int kvm_mmu_load(struct kvm_vcpu *vcpu) | |||
2373 | spin_unlock(&vcpu->kvm->mmu_lock); | 2373 | spin_unlock(&vcpu->kvm->mmu_lock); |
2374 | if (r) | 2374 | if (r) |
2375 | goto out; | 2375 | goto out; |
2376 | /* set_cr3() should ensure TLB has been flushed */ | ||
2376 | kvm_x86_ops->set_cr3(vcpu, vcpu->arch.mmu.root_hpa); | 2377 | kvm_x86_ops->set_cr3(vcpu, vcpu->arch.mmu.root_hpa); |
2377 | kvm_mmu_flush_tlb(vcpu); | ||
2378 | out: | 2378 | out: |
2379 | return r; | 2379 | return r; |
2380 | } | 2380 | } |