From: Gleb Natapov <gleb@redhat.com>
To: Jerry Geis <geisj@pagestation.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: kvm guest for 486 sx
Date: Tue, 7 Jul 2009 15:19:27 +0300 [thread overview]
Message-ID: <20090707121927.GF28046@redhat.com> (raw)
In-Reply-To: <4A533A32.7000505@pagestation.com>
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.
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
--
Gleb.
prev parent reply other threads:[~2009-07-07 12:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 19:58 kvm guest for 486 sx Jerry Geis
2009-07-07 9:54 ` Avi Kivity
2009-07-07 12:06 ` Jerry Geis
2009-07-07 12:17 ` Avi Kivity
2009-07-07 12:31 ` Jerry Geis
2009-07-07 12:36 ` Jerry Geis
2009-07-07 12:50 ` Avi Kivity
2009-07-07 13:15 ` Jerry Geis
2009-07-07 13:23 ` Avi Kivity
2009-07-07 14:58 ` Jerry Geis
2009-07-07 15:38 ` Avi Kivity
2009-07-07 23:35 ` Jerry Geis
2009-07-08 11:04 ` Andre Przywara
2009-07-08 11:25 ` Avi Kivity
2009-07-07 12:19 ` Gleb Natapov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090707121927.GF28046@redhat.com \
--to=gleb@redhat.com \
--cc=avi@redhat.com \
--cc=geisj@pagestation.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.