All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] don't halt non-boot CPU if IRQ chip is in kernel
@ 2008-10-06 14:32 Gleb Natapov
  0 siblings, 0 replies; only message in thread
From: Gleb Natapov @ 2008-10-06 14:32 UTC (permalink / raw)
  To: avi; +Cc: kvm


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 <gleb@redhat.com>

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.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-06 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 14:32 [PATCH] don't halt non-boot CPU if IRQ chip is in kernel Gleb Natapov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.