From patchwork Thu Oct 1 22:16:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 51035 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n91MTjDp013788 for ; Thu, 1 Oct 2009 22:29:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753720AbZJAW3V (ORCPT ); Thu, 1 Oct 2009 18:29:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753727AbZJAW3U (ORCPT ); Thu, 1 Oct 2009 18:29:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35673 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753720AbZJAW3S (ORCPT ); Thu, 1 Oct 2009 18:29:18 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n91MTMM5027876; Thu, 1 Oct 2009 18:29:22 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n91MTLCb031877; Thu, 1 Oct 2009 18:29:21 -0400 Received: from amt.cnet (vpn-12-89.rdu.redhat.com [10.11.12.89]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n91MTKfs020676; Thu, 1 Oct 2009 18:29:20 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 4B86F5881C9; Thu, 1 Oct 2009 19:29:07 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n91MT5Pp024057; Thu, 1 Oct 2009 19:29:05 -0300 Date: Thu, 1 Oct 2009 19:16:58 -0300 From: Marcelo Tosatti To: kvm Cc: Avi Kivity , "Yang, Sheng" Subject: KVM: VMX: flush TLB with INVEPT on cpu migration Message-ID: <20091001221658.GA22916@amt.cnet> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index e86f1a6..97f4265 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -708,7 +708,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) if (vcpu->cpu != cpu) { vcpu_clear(vmx); kvm_migrate_timers(vcpu); - vpid_sync_vcpu_all(vmx); + set_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests); local_irq_disable(); list_add(&vmx->local_vcpus_link, &per_cpu(vcpus_on_cpu, cpu));