From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCH] don't halt non-boot CPU if IRQ chip is in kernel Date: Mon, 6 Oct 2008 16:32:06 +0200 Message-ID: <20081006143206.GB11435@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from il.qumranet.com ([212.179.150.194]:15094 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752618AbYJFOcI (ORCPT ); Mon, 6 Oct 2008 10:32:08 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 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.