From patchwork Tue Jul 7 12:19:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 34414 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 n67CJYAn002294 for ; Tue, 7 Jul 2009 12:19:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754618AbZGGMT1 (ORCPT ); Tue, 7 Jul 2009 08:19:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754132AbZGGMT1 (ORCPT ); Tue, 7 Jul 2009 08:19:27 -0400 Received: from mx2.redhat.com ([66.187.237.31]:51121 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753827AbZGGMT0 (ORCPT ); Tue, 7 Jul 2009 08:19:26 -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 n67CJTiA008748; Tue, 7 Jul 2009 08:19:29 -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 n67CJSAS021680; Tue, 7 Jul 2009 08:19:29 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n67CJRUR013544; Tue, 7 Jul 2009 08:19:28 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 95C1C18D479; Tue, 7 Jul 2009 15:19:27 +0300 (IDT) Date: Tue, 7 Jul 2009 15:19:27 +0300 From: Gleb Natapov To: Jerry Geis Cc: Avi Kivity , kvm@vger.kernel.org Subject: Re: kvm guest for 486 sx Message-ID: <20090707121927.GF28046@redhat.com> References: <4A525759.6090404@pagestation.com> <4A531B44.90803@redhat.com> <4A533A32.7000505@pagestation.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4A533A32.7000505@pagestation.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 On Tue, Jul 07, 2009 at 08:06:10AM -0400, Jerry Geis wrote: > Avi Kivity wrote: >> On 07/06/2009 10:58 PM, Jerry Geis wrote: >>> I wish to run as a guest a 486 SX equivalent >>> is there an option to disable the floating point support? >>> >>> Is it possible to do this? >>> >> >> Try -cpu 486,-fpu. >> > Avi, > > Running this command: > qemu-system-x86_64 -net nic,model=rtl8139 -net user -hda $1 -no-acpi > -usb -cpu 486,-fpu & > > I get a seg fault: > qemu-system-x86[15419]: segfault at c ip 0000000000458b95 sp > 0000000041d9df90 error 4 in qemu-system-x86_64[400000+208000] > > > I am running kvm-87 centos 5.3 x86_64. > Apply the patch and try again please. --- Gleb. -- 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 diff --git a/hw/apic.c b/hw/apic.c index 778a853..3e79377 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -955,7 +955,8 @@ static void kvm_kernel_lapic_load_from_user(APICState *s) void qemu_kvm_load_lapic(CPUState *env) { #ifdef KVM_CAP_IRQCHIP - if (kvm_enabled() && kvm_vcpu_inited(env) && qemu_kvm_irqchip_in_kernel()) { + if (kvm_enabled() && kvm_vcpu_inited(env) && + qemu_kvm_irqchip_in_kernel() && env->apic_state) { kvm_kernel_lapic_load_from_user(env->apic_state); } #endif