[PATCH] remove unused function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



not a single in-tree user.

Signed-off-by: Glauber Costa <glommer@xxxxxxxxxx>
---
 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(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)
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux