diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-23 13:37:14 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-06-28 13:06:03 -0300 |
commit | ddced198cdb6e3c9f7d8b612fa1d22c51c36fa4a (patch) | |
tree | 8d91ede6e886550fe6fc0ed70485ee09184809c1 /target-i386/kvm.c | |
parent | f1665b21f16c5dc0ac37de60233a4975aff31193 (diff) |
kvm: init mp_state
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r-- | target-i386/kvm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 436c0c4f29..576d3b510e 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -282,6 +282,12 @@ void kvm_arch_reset_vcpu(CPUState *env) env->interrupt_injected = -1; env->nmi_injected = 0; env->nmi_pending = 0; + if (kvm_irqchip_in_kernel()) { + env->mp_state = cpu_is_bsp(env) ? KVM_MP_STATE_RUNNABLE : + KVM_MP_STATE_UNINITIALIZED; + } else { + env->mp_state = KVM_MP_STATE_RUNNABLE; + } } static int kvm_has_msr_star(CPUState *env) |