* [PATCH] remove unused function.
@ 2009-07-28 1:49 Glauber Costa
2009-08-03 13:19 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Glauber Costa @ 2009-07-28 1:49 UTC (permalink / raw)
To: kvm; +Cc: avi
not a single in-tree user.
Signed-off-by: Glauber Costa <glommer@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(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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] remove unused function.
2009-07-28 1:49 [PATCH] remove unused function Glauber Costa
@ 2009-08-03 13:19 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-08-03 13:19 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-03 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-28 1:49 [PATCH] remove unused function Glauber Costa
2009-08-03 13:19 ` Avi Kivity
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.