]> Pileus Git - ~andy/linux/commitdiff
KVM: Discard unnecessary kvm_mmu_flush_tlb() in kvm_mmu_load()
authorSheng Yang <sheng@linux.intel.com>
Thu, 9 Jul 2009 09:00:42 +0000 (17:00 +0800)
committerAvi 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

index f1f08159e11e5663dc21d6e6417c0253d1805602..87c67f4492795509a67640ad2e8af3b9f0de111a 100644 (file)
@@ -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;
 }