From patchwork Thu Aug 27 01:20:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 44166 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 n7R1VqbV016595 for ; Thu, 27 Aug 2009 01:31:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754573AbZH0Bbq (ORCPT ); Wed, 26 Aug 2009 21:31:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754586AbZH0Bbo (ORCPT ); Wed, 26 Aug 2009 21:31:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26901 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754450AbZH0Bbk (ORCPT ); Wed, 26 Aug 2009 21:31:40 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7R1Vg7F024411 for ; Wed, 26 Aug 2009 21:31:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7R1VgKe023628; Wed, 26 Aug 2009 21:31:42 -0400 Received: from amt.cnet (vpn-51-10.sfbay.redhat.com [10.14.51.10]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7R1Vdv5024670; Wed, 26 Aug 2009 21:31:40 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 386C158815B; Wed, 26 Aug 2009 22:31:07 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n7R1V5TD007039; Wed, 26 Aug 2009 22:31:05 -0300 Message-Id: <20090827012955.301457206@localhost.localdomain> References: <20090827012000.762063112@localhost.localdomain> User-Agent: quilt/0.46-1 Date: Wed, 26 Aug 2009 22:20:03 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: Marcelo Tosatti Subject: [patch 3/5] KVM: switch REQ_TLB_FLUSH/REQ_MMU_RELOAD to kvm_vcpus_request Content-Disposition: inline; filename=switch-to-wait-bit-requests X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Marcelo Tosatti Index: kvm/virt/kvm/kvm_main.c =================================================================== --- kvm.orig/virt/kvm/kvm_main.c +++ kvm/virt/kvm/kvm_main.c @@ -202,13 +202,13 @@ static void kvm_vcpus_request(struct kvm void kvm_flush_remote_tlbs(struct kvm *kvm) { - if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH)) - ++kvm->stat.remote_tlb_flush; + kvm_vcpus_request(kvm, KVM_REQ_TLB_FLUSH); + ++kvm->stat.remote_tlb_flush; } void kvm_reload_remote_mmus(struct kvm *kvm) { - make_all_cpus_request(kvm, KVM_REQ_MMU_RELOAD); + kvm_vcpus_request(kvm, KVM_REQ_MMU_RELOAD); } int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id)