From patchwork Fri Sep 12 21:06:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liang Chen X-Patchwork-Id: 4898231 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 166ACBEEA5 for ; Fri, 12 Sep 2014 21:06:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57999201D3 for ; Fri, 12 Sep 2014 21:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A298200E8 for ; Fri, 12 Sep 2014 21:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbaILVGx (ORCPT ); Fri, 12 Sep 2014 17:06:53 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=jh8e6JRaHUsh/nb5e0ki/pzJ0W5d4ZNY9cU+zOVOlOE=; b=FVjZtQSwC3AhxBPOqiCU8HB77gy0ikWF72N6f9ecGP/aqhUies2mzgs8bqIGRBVAE2 eEHGe7JxZYUODJJ6uKBtbNOXb0gVHbEREkrqixi0PnaljXvBfae1lyDCLMi9fEU1WBwg Xu2Ag5PbwlGE8z4BSQHksmgUxOUEcK2pOb+2a05Kl7qAjDBKWugzbHSi5P1NBzbCvZJS uybrvnyBJ8W96hkrwuzzirrUHFYl5dCY9/sfuHl20yMmCT+40lVbyBtjNqx9GBfmVtki eK7ZvEA21FFRRu/BQ9TFC1uCU/HyY3T8JyH7OUiPDtDxy4HJtliff0pOQL3zZW/7wsfg POFg== X-Received: by 10.140.18.166 with SMTP id 35mr325724qgf.57.1410556008001; Fri, 12 Sep 2014 14:06:48 -0700 (PDT) Received: from localhost.localdomain (c-174-57-166-71.hsd1.nj.comcast.net. [174.57.166.71]) by mx.google.com with ESMTPSA id 75sm3826438qgg.25.2014.09.12.14.06.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Sep 2014 14:06:47 -0700 (PDT) From: Liang Chen To: pbonzini@redhat.com Cc: kvm@vger.kernel.org, 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> X-Mailer: git-send-email 1.9.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);