We'll use it from inside the in-kernel apic chip, so get it into a header file. Signed-off-by: Glauber Costa <glommer@xxxxxxxxxx> --- target-i386/cpu.h | 4 ++++ target-i386/kvm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) 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 }; -- 1.6.6 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html