Patchwork [v2,6/9] export kvm_put_mp_state

login
register
mail settings
Submitter Glauber Costa
Date Nov. 16, 2009, 5:12 p.m.
Message ID <1258391527-18840-7-git-send-email-glommer@redhat.com>
Download mbox | patch
Permalink /patch/38527/
State New
Headers show

Comments

Glauber Costa - Nov. 16, 2009, 5:12 p.m.
We'll use it from inside the in-kernel apic chip, so get it into a header
file.

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
 target-i386/cpu.h |    4 ++++
 target-i386/kvm.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

Patch

diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index e5470f7..c671894 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -922,4 +922,8 @@  void apic_init_reset(CPUState *env);
 void apic_sipi(CPUState *env);
 void do_cpu_init(CPUState *env);
 void do_cpu_sipi(CPUState *env);
+
+/* KVM hooks */
+int kvm_put_mp_state(CPUState *env);
+
 #endif /* CPU_I386_H */
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 103defd..6ba0b7e 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -672,7 +672,7 @@  static int kvm_get_msrs(CPUState *env)
     return 0;
 }
 
-static int kvm_put_mp_state(CPUState *env)
+int kvm_put_mp_state(CPUState *env)
 {
     struct kvm_mp_state mp_state = { .mp_state = env->mp_state };