Message ID | 20100323163812.665650073@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Index: qemu-uq/target-i386/kvm.c =================================================================== --- qemu-uq.orig/target-i386/kvm.c +++ qemu-uq/target-i386/kvm.c @@ -279,6 +279,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)