From patchwork Tue Sep 8 17:50:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 46231 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 n88Hpl7N027448 for ; Tue, 8 Sep 2009 17:51:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbZIHRvR (ORCPT ); Tue, 8 Sep 2009 13:51:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751857AbZIHRvR (ORCPT ); Tue, 8 Sep 2009 13:51:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34044 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784AbZIHRvQ (ORCPT ); Tue, 8 Sep 2009 13:51:16 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n88HpJEO019332 for ; Tue, 8 Sep 2009 13:51:19 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n88HpIJO024541 for ; Tue, 8 Sep 2009 13:51:18 -0400 Received: from amt.cnet (vpn-10-116.str.redhat.com [10.32.10.116]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n88HpGVv002761 for ; Tue, 8 Sep 2009 13:51:17 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 26ACE58805B for ; Tue, 8 Sep 2009 14:50:52 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n88HopG5019491 for kvm@vger.kernel.org; Tue, 8 Sep 2009 14:50:51 -0300 Date: Tue, 8 Sep 2009 14:50:51 -0300 From: Marcelo Tosatti To: kvm Subject: KVM: x86: drop duplicate kvm_flush_remote_tlb calls Message-ID: <20090908175051.GB19318@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.16 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 --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 891234b..f83e990 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2159,7 +2159,6 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, 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); @@ -4907,7 +4906,6 @@ int kvm_arch_set_memory_region(struct kvm *kvm, kvm_mmu_slot_remove_write_access(kvm, mem->slot); spin_unlock(&kvm->mmu_lock); - kvm_flush_remote_tlbs(kvm); return 0; }