From patchwork Tue Aug 11 01:39:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "SourceForge.net" X-Patchwork-Id: 40546 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 n7B1d4Sk012697 for ; Tue, 11 Aug 2009 01:39:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752697AbZHKBjA (ORCPT ); Mon, 10 Aug 2009 21:39:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752701AbZHKBjA (ORCPT ); Mon, 10 Aug 2009 21:39:00 -0400 Received: from ch3.sourceforge.net ([216.34.181.60]:43289 "EHLO ch3.sourceforge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbZHKBjA (ORCPT ); Mon, 10 Aug 2009 21:39:00 -0400 Received: from www by 3bkjzd1.ch3.sourceforge.com with local (Exim 4.69) (envelope-from ) id 1MagKK-000864-CJ; Tue, 11 Aug 2009 01:39:00 +0000 To: noreply@sourceforge.net From: "SourceForge.net" Subject: [ kvm-Bugs-2835276 ] segfault using -cpu pentium3 on coreduo Mime-Version: 1.0 X-SourceForge-Tracker-unixname: kvm X-SourceForge-Tracker-trackerid: 893831 X-SourceForge-Tracker-itemid: 2835276 X-SourceForge-Tracker-itemstatus: Open X-SourceForge-Tracker-itemassignee: nobody X-SourceForge-Tracker-itemupdate-reason: Tracker Item Submitted X-SourceForge-Tracker-itemupdate-username: agriffis Message-Id: Date: Tue, 11 Aug 2009 01:39:00 +0000 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Bugs item #2835276, was opened at 2009-08-10 21:38 Message generated for change (Tracker Item Submitted) made by agriffis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2835276&group_id=180599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: qemu Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Aron Griffis (agriffis) Assigned to: Nobody/Anonymous (nobody) Summary: segfault using -cpu pentium3 on coreduo Initial Comment: qemu-0.11.0-rc1 and qemu-kvm-HEAD segfault with -cpu pentium3 on ProLiant DL380 G5 (dual-socket dual-core Intel Xeon 5160). This is a regression from qemu-0.10.6 which does not have the problem. Using -cpu coreduo avoids the segfault. -cpu athlon works too. I bisected to find that the problem is introduced by 0ed8cfc05bb012e52b92771bb13bef0e2e80c828 and can be worked around by the following patch to HEAD which effectively reverts that commit: ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2835276&group_id=180599 --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/hw/pc.c +++ b/hw/pc.c @@ -1096,11 +1096,11 @@ CPUState *pc_new_cpu(const char *cpu_model) } if ((env->cpuid_features & CPUID_APIC) || smp_cpus > 1) { env->cpuid_apic_id = env->cpu_index; - /* APIC reset callback resets cpu */ - apic_init(env); } else { qemu_register_reset((QEMUResetHandler*)cpu_reset, env); } + /* APIC reset callback resets cpu */ + apic_init(env); /* kvm needs this to run after the apic is initialized. Otherwise, * it can access invalid state and crash.