Don't halt non-boot CPU if IRQ chip is in kernel.

Otherwise CPU thread will never enter kernel again and will not process SIPI.

Signed-off-by: Gleb Natapov <[EMAIL PROTECTED]>

diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
index 52e424f..bdaa2fe 100644
--- a/qemu/hw/apic.c
+++ b/qemu/hw/apic.c
@@ -469,7 +469,7 @@ static void apic_init_ipi(APICState *s)
 
     cpu_reset(s->cpu_env);
 
-    if (!(s->apicbase & MSR_IA32_APICBASE_BSP))
+    if (!(s->apicbase & MSR_IA32_APICBASE_BSP) && 
!qemu_kvm_irqchip_in_kernel())
         s->cpu_env->halted = 1;
 
     if (kvm_enabled() && !qemu_kvm_irqchip_in_kernel())
--
                        Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to