From patchwork Mon May 3 22:48:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 96586 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o43Mv9Kq031895 for ; Mon, 3 May 2010 22:57:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759550Ab0ECW5F (ORCPT ); Mon, 3 May 2010 18:57:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57541 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759582Ab0ECW5A (ORCPT ); Mon, 3 May 2010 18:57:00 -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 o43Mv0gw028142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 May 2010 18:57:00 -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 o43Muwei013155; Mon, 3 May 2010 18:56:59 -0400 Received: from amt.cnet (vpn-8-8.rdu.redhat.com [10.11.8.8]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o43Muvlr006981; Mon, 3 May 2010 18:56:58 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id EA8C9656079; Mon, 3 May 2010 19:56:09 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o43Mu8fF026915; Mon, 3 May 2010 19:56:08 -0300 Message-Id: <20100503224905.512545018@amt.cnet> User-Agent: quilt/0.47-1 Date: Mon, 03 May 2010 19:48:22 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: avi@redhat.com, jan.kiszka@web.de, Marcelo Tosatti Subject: [patch 3/6] remove unused kvm_get_dirty_pages References: <20100503224819.773169076@amt.cnet> Content-Disposition: inline; filename=unregister 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 03 May 2010 22:57:10 +0000 (UTC) Index: qemu-kvm-memslot/qemu-kvm.c =================================================================== --- qemu-kvm-memslot.orig/qemu-kvm.c +++ qemu-kvm-memslot/qemu-kvm.c @@ -639,8 +639,8 @@ void kvm_destroy_phys_mem(kvm_context_t free_slot(memory.slot); } -void kvm_unregister_memory_area(kvm_context_t kvm, uint64_t phys_addr, - unsigned long size) +static void kvm_unregister_memory_area(kvm_context_t kvm, uint64_t phys_addr, + unsigned long size) { int slot = get_container_slot(phys_addr, size); @@ -667,14 +667,6 @@ static int kvm_get_map(kvm_context_t kvm return 0; } -int kvm_get_dirty_pages(kvm_context_t kvm, unsigned long phys_addr, void *buf) -{ - int slot; - - slot = get_slot(phys_addr); - return kvm_get_map(kvm, KVM_GET_DIRTY_LOG, slot, buf); -} - int kvm_get_dirty_pages_range(kvm_context_t kvm, unsigned long phys_addr, unsigned long len, void *opaque, int (*cb)(unsigned long start, Index: qemu-kvm-memslot/qemu-kvm.h =================================================================== --- qemu-kvm-memslot.orig/qemu-kvm.h +++ qemu-kvm-memslot/qemu-kvm.h @@ -381,14 +381,11 @@ void *kvm_create_phys_mem(kvm_context_t, unsigned long len, int log, int writable); void kvm_destroy_phys_mem(kvm_context_t, unsigned long phys_start, unsigned long len); -void kvm_unregister_memory_area(kvm_context_t, uint64_t phys_start, - unsigned long len); int kvm_is_containing_region(kvm_context_t kvm, unsigned long phys_start, unsigned long size); int kvm_register_phys_mem(kvm_context_t kvm, unsigned long phys_start, void *userspace_addr, unsigned long len, int log); -int kvm_get_dirty_pages(kvm_context_t, unsigned long phys_addr, void *buf); int kvm_get_dirty_pages_range(kvm_context_t kvm, unsigned long phys_addr, unsigned long end_addr, void *opaque, int (*cb)(unsigned long start,