From: Xiao Guangrong Date: Tue, 8 Jun 2010 12:05:57 +0000 (+0800) Subject: KVM: MMU: use wrapper function to flush local tlb X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5304efde6ae27deeeae79b97af709d4ceecc336e;p=linux-beck.git KVM: MMU: use wrapper function to flush local tlb Use kvm_mmu_flush_tlb() function instead of calling kvm_x86_ops->tlb_flush(vcpu) directly. Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 098a0b8616b0..e087f855461d 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -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);