From: Glauber Costa <glommer@redhat.com>
To: kvm@vger.kernel.org
Cc: avi@redhat.com, zamsden@redhat.com, mtosatti@redhat.com
Subject: [PATCH v2 1/2] change header for kvm_get_msr_list
Date: Wed, 5 May 2010 15:19:20 -0400 [thread overview]
Message-ID: <1273087161-32428-2-git-send-email-glommer@redhat.com> (raw)
In-Reply-To: <1273087161-32428-1-git-send-email-glommer@redhat.com>
We don't use kvm_context anymore. So remove it.
Also, the function is not used anywhere else, so make it
static.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
qemu-kvm-x86.c | 4 ++--
qemu-kvm.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 439c31a..5a2b552 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -393,7 +393,7 @@ void kvm_show_code(CPUState *env)
/*
* Returns available msr list. User must free.
*/
-struct kvm_msr_list *kvm_get_msr_list(kvm_context_t kvm)
+static struct kvm_msr_list *kvm_get_msr_list(void)
{
struct kvm_msr_list sizer, *msrs;
int r;
@@ -670,7 +670,7 @@ int kvm_arch_qemu_create_context(void)
if (kvm_shadow_memory)
kvm_set_shadow_pages(kvm_context, kvm_shadow_memory);
- kvm_msr_list = kvm_get_msr_list(kvm_context);
+ kvm_msr_list = kvm_get_msr_list();
if (!kvm_msr_list)
return -1;
for (i = 0; i < kvm_msr_list->nmsrs; ++i) {
diff --git a/qemu-kvm.h b/qemu-kvm.h
index ba3808a..5eeed64 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -97,7 +97,6 @@ int handle_io_window(kvm_context_t kvm);
int try_push_interrupts(kvm_context_t kvm);
#if defined(__x86_64__) || defined(__i386__)
-struct kvm_msr_list *kvm_get_msr_list(kvm_context_t);
int kvm_get_msrs(CPUState *env, struct kvm_msr_entry *msrs, int n);
int kvm_set_msrs(CPUState *env, struct kvm_msr_entry *msrs, int n);
int kvm_get_mce_cap_supported(kvm_context_t, uint64_t *mce_cap,
--
1.6.2.2
next prev parent reply other threads:[~2010-05-05 19:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 19:19 [PATCH v2 0/2] fix kvmclock bug - memory corruption (v2) Glauber Costa
2010-05-05 19:19 ` Glauber Costa [this message]
2010-05-05 19:19 ` [PATCH v2 2/2] turn off kvmclock when resetting cpu Glauber Costa
2010-05-05 20:33 ` Zachary Amsden
2010-05-05 21:18 ` Glauber Costa
2010-05-11 4:12 ` [PATCH v2 0/2] fix kvmclock bug - memory corruption (v2) Marcelo Tosatti
2010-05-11 8:54 ` 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=1273087161-32428-2-git-send-email-glommer@redhat.com \
--to=glommer@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=zamsden@redhat.com \
/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