public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Glauber Costa <glommer@redhat.com>
To: kvm@vger.kernel.org
Cc: avi@redhat.com
Subject: [PATCH] remove unused function.
Date: Mon, 27 Jul 2009 21:49:10 -0400	[thread overview]
Message-ID: <1248745750-4166-1-git-send-email-glommer@redhat.com> (raw)

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


             reply	other threads:[~2009-07-28  1:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28  1:49 Glauber Costa [this message]
2009-08-03 13:19 ` [PATCH] remove unused function Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1248745750-4166-1-git-send-email-glommer@redhat.com \
    --to=glommer@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox