From: Glauber Costa Subject: [PATCH 1/4] always halt non-bsp cpu. Date: Tue, 2 Jun 2009 15:37:47 -0400 Message-ID: <1243971470-31676-2-git-send-email-glommer@redhat.com> References: <1243971470-31676-1-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:56880 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346AbZFBThu (ORCPT ); Tue, 2 Jun 2009 15:37:50 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n52Jbq9Y024275 for ; Tue, 2 Jun 2009 15:37:52 -0400 In-Reply-To: <1243971470-31676-1-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is not kvm specific, and should do fine in plain qemu Signed-off-by: Glauber Costa --- hw/apic.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 86aa6b6..2eddba0 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -467,8 +467,7 @@ static void apic_init_ipi(APICState *s) cpu_reset(s->cpu_env); - if (!(s->apicbase & MSR_IA32_APICBASE_BSP) && - (!kvm_enabled() || !qemu_kvm_irqchip_in_kernel())) + if (!(s->apicbase & MSR_IA32_APICBASE_BSP)) s->cpu_env->halted = 1; if (kvm_enabled() && !qemu_kvm_irqchip_in_kernel()) -- 1.5.6.6