Skip to contentSkip to conversation

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

PATCH New Gleb Natapov 1 participant 1 message Oct 6, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't halt non-boot CPU if IRQ chip is in kernel

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.

qemu/hw/apic.c +1 -1
index 52e424f..bdaa2fe 100644
@@ -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.