From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liang Chen Subject: [PATCH] Using the tlb flush util function where applicable Date: Fri, 12 Sep 2014 17:06:45 -0400 Message-ID: <1410556005-15639-1-git-send-email-liangchen.linux@gmail.com> Cc: kvm@vger.kernel.org, Liang Chen To: pbonzini@redhat.com Return-path: Received: from mail-qa0-f67.google.com ([209.85.216.67]:65327 "EHLO mail-qa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbaILVGw (ORCPT ); Fri, 12 Sep 2014 17:06:52 -0400 Received: by mail-qa0-f67.google.com with SMTP id s7so373059qap.2 for ; Fri, 12 Sep 2014 14:06:48 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Using kvm_mmu_flush_tlb as the other places to make sure vcpu stat is incremented Signed-off-by: Liang Chen --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index bfe11cf..439682e 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1810,7 +1810,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) struct desc_ptr *gdt = &__get_cpu_var(host_gdt); unsigned long sysenter_esp; - kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); + kvm_mmu_flush_tlb(vcpu); local_irq_disable(); crash_disable_local_vmclear(cpu); -- 1.9.1