]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: MMU: use wrapper function to flush local tlb
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Tue, 8 Jun 2010 12:05:57 +0000 (20:05 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:46:25 +0000 (10:46 +0300)
Use kvm_mmu_flush_tlb() function instead of calling
kvm_x86_ops->tlb_flush(vcpu) directly.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c

index 098a0b8616b01d464b580310d25495dc65fad427..e087f855461d023527ce73c49dad664b2d05f613 100644 (file)
@@ -1984,7 +1984,7 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep,
                      reset_host_protection)) {
                if (write_fault)
                        *ptwrite = 1;
-               kvm_x86_ops->tlb_flush(vcpu);
+               kvm_mmu_flush_tlb(vcpu);
        }
 
        pgprintk("%s: setting spte %llx\n", __func__, *sptep);