From patchwork Tue Jun 2 19:37:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 27537 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n52JbuhJ032082 for ; Tue, 2 Jun 2009 19:37:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbZFBThw (ORCPT ); Tue, 2 Jun 2009 15:37:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751766AbZFBThv (ORCPT ); Tue, 2 Jun 2009 15:37:51 -0400 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 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n52JbpUt017335; Tue, 2 Jun 2009 15:37:52 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n52JboKt004568; Tue, 2 Jun 2009 15:37:51 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com 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> In-Reply-To: <1243971470-31676-1-git-send-email-glommer@redhat.com> References: <1243971470-31676-1-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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())