diff mbox

[06/10] export kvm_put_mp_state

Message ID 1267215141-13629-7-git-send-email-glommer@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Glauber Costa Feb. 26, 2010, 8:12 p.m. UTC
None
diff mbox

Patch

diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index abc2eb3..78399a1 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -933,4 +933,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 18a6d8d..825decd 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -788,7 +788,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 };