aboutsummaryrefslogtreecommitdiff
path: root/target-i386/kvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r--target-i386/kvm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 7cdcf31cab..c4fd4848c5 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -126,6 +126,8 @@ int kvm_arch_init_vcpu(CPUState *env)
uint32_t limit, i, j, cpuid_i;
uint32_t unused;
+ env->mp_state = KVM_MP_STATE_RUNNABLE;
+
cpuid_i = 0;
cpu_x86_cpuid(env, 0, 0, &limit, &unused, &unused, &unused);
@@ -648,6 +650,14 @@ int kvm_arch_put_registers(CPUState *env)
if (ret < 0)
return ret;
+ ret = kvm_put_mp_state(env);
+ if (ret < 0)
+ return ret;
+
+ ret = kvm_get_mp_state(env);
+ if (ret < 0)
+ return ret;
+
return 0;
}