Skip to contentSkip to conversation

remove unused function.

PATCH Applied Glauber Costa 2 participants 2 messages Jul 28, 2009 – Aug 3, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused function.

not a single in-tree user.

---
 qemu-kvm.c |   16 ----------------
 qemu-kvm.h |    1 -
 2 files changed, 0 insertions(+), 17 deletions(-)
qemu-kvm.c +0 -16
index 32dce4a..8297ff0 100644
@@ -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(0xa0000);
-    unsigned int hole_end   = BITMAP_SIZE(0xc0000);
-
-    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)
qemu-kvm.h +0 -1
index eb48ff8..27ed270 100644
@@ -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);
Signature · 1 line
1.6.2.2
Applied
#1 lore raw
Quoted 2 lines · Glauber Costa

not a single in-tree user.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function