From patchwork Thu Aug 27 01:20:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 44163 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 n7R1VkZn016560 for ; Thu, 27 Aug 2009 01:31:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754472AbZH0Bbl (ORCPT ); Wed, 26 Aug 2009 21:31:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754556AbZH0Bbl (ORCPT ); Wed, 26 Aug 2009 21:31:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754416AbZH0Bbk (ORCPT ); Wed, 26 Aug 2009 21:31:40 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7R1VgZX025159 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-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7R1Vf2l020899; 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 n7R1Vd7W024669; 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 4384A58815E; Wed, 26 Aug 2009 22:31:15 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n7R1V8jc007081; Wed, 26 Aug 2009 22:31:08 -0300 Message-Id: <20090827012955.506279492@localhost.localdomain> References: <20090827012000.762063112@localhost.localdomain> User-Agent: quilt/0.46-1 Date: Wed, 26 Aug 2009 22:20:05 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: Marcelo Tosatti Subject: [patch 5/5] KVM: x86: drop duplicat kvm_flush_remote_tlbs Content-Disposition: inline; filename=remove-duplicate-tlb-flushes X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org kvm_mmu_slot_remove_write_access already calls it. Signed-off-by: Marcelo Tosatti Index: kvm-requests/arch/x86/kvm/x86.c =================================================================== --- kvm-requests.orig/arch/x86/kvm/x86.c +++ kvm-requests/arch/x86/kvm/x86.c @@ -2148,7 +2148,6 @@ int kvm_vm_ioctl_get_dirty_log(struct kv spin_lock(&kvm->mmu_lock); kvm_mmu_slot_remove_write_access(kvm, log->slot); spin_unlock(&kvm->mmu_lock); - kvm_flush_remote_tlbs(kvm); memslot = &kvm->memslots[log->slot]; n = ALIGN(memslot->npages, BITS_PER_LONG) / 8; memset(memslot->dirty_bitmap, 0, n); @@ -4904,7 +4903,6 @@ int kvm_arch_set_memory_region(struct kv kvm_mmu_slot_remove_write_access(kvm, mem->slot); spin_unlock(&kvm->mmu_lock); - kvm_flush_remote_tlbs(kvm); return 0; }