Re: [PATCH] remove unused function.

2009-08-03 Thread Avi Kivity

On 07/28/2009 04:49 AM, Glauber Costa wrote:

not a single in-tree user.
   


Applied, thanks.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] remove unused function.

2009-07-27 Thread Glauber Costa
not a single in-tree user.

Signed-off-by: Glauber Costa glom...@redhat.com
---
 qemu-kvm.c |   16 
 qemu-kvm.h |1 -
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 32dce4a..8297ff0 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -2461,22 +2461,6 @@ void kvm_qemu_log_memory(target_phys_addr_t start, 
target_phys_addr_t size,
 }
 }
 
-int kvm_get_phys_ram_page_bitmap(unsigned char *bitmap)
-{
-unsigned int bsize  = BITMAP_SIZE(phys_ram_size);
-unsigned int brsize = BITMAP_SIZE(ram_size);
-unsigned int extra_pages = (phys_ram_size - ram_size) / TARGET_PAGE_SIZE;
-unsigned int extra_bytes = (extra_pages +7)/8;
-unsigned int hole_start = BITMAP_SIZE(0xa);
-unsigned int hole_end   = BITMAP_SIZE(0xc);
-
-memset(bitmap, 0xFF, brsize + extra_bytes);
-memset(bitmap + hole_start, 0, hole_end - hole_start);
-memset(bitmap + brsize + extra_bytes, 0, bsize - brsize - extra_bytes);
-
-return 0;
-}
-
 #ifdef KVM_CAP_IRQCHIP
 
 int kvm_set_irq(int irq, int level, int *status)
diff --git a/qemu-kvm.h b/qemu-kvm.h
index eb48ff8..27ed270 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -979,7 +979,6 @@ int kvm_set_irq(int irq, int level, int *status);
 
 int kvm_physical_memory_set_dirty_tracking(int enable);
 int kvm_update_dirty_pages_log(void);
-int kvm_get_phys_ram_page_bitmap(unsigned char *bitmap);
 
 void qemu_kvm_call_with_env(void (*func)(void *), void *data, CPUState *env);
 void qemu_kvm_cpuid_on_env(CPUState *env);
-- 
1.6.2.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html