Skip to contentSkip to conversation

kqemu in x86_64: (host) exception 0x0d in monitor space

Qemu-devel J M Cerqueira Esteves 5 participants 8 messages Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

Greetings

Summary: qemu-system-x86_64 with kqemu (running under Ubuntu on a Athlon
64) crashes while installing a guest Debian amd64 testing (etch) system, with the host reporting (in kernel logs):
kqemu: aborting: Unexpected exception 0x0d in monitor space

Host CPU: AMD Athlon 64 3500+ (machine: HP dx5150 MT) Host operating system: Ubuntu 6.06 LTS
Host kernel: one of the Ubuntu pre-packaged ones,

             2.6.15-26-amd64-k8 (SMP PREEMPT)

VDE: 'backported' (just rebuilding the package)

     from Debian testing's vde 1.5.11-1.

QEMU: 0.8.2, configured with -cc=gcc-3.4 --enable-alsa
kqemu: 1.3.0pre9

I tried to install Debian amd64 testing (etch) from a snapshot netinst iso image downloaded yesterday, invoking

    vdeq qemu-system-x86_64 \
	-pidfile /srv/qemu/nisaba.pid \
	-m 160 \
	-net nic,vlan=0,model=rtl8139,macaddr=4A:4D:23:00:00:01 \
	-net vde,vlan=0,sock=/var/run/vde/tap-vde-1.ctl \
	-hda /srv/qemu/$NAME.qcow \
        -cdrom /srv/ark/cd/debian-testing-amd64-netinst-20060810.iso \
	-boot d

Booted in expert mode, chose language, keyboard layout, country, locale parameters, and just after I chose "detect and mount cdrom" qemu crashed (apparently immediately after (very briefly) showing a progress bar with "detecting hardware to find cd-rom drives"), with the (host-side) output

ES =0000 0000000000000000 00000000 00000000
CS =0033 0000000000000000 ffffffff 00affa00
SS =002b 0000000000000000 ffffffff 00cff200
DS =0000 0000000000000000 00000000 00000000
FS =0000 0000000000000000 00000000 00000000
GS =0000 0000000000000000 00000000 00000000
LDT=0000 0000000000000000 00000000 00008000
TR =0040 ffffffff8030e000 0000206f 80008930
GDT= ffffffff8030c000 00000080
IDT= ffffffff8030d000 00001000
CR0=8005003b CR2=00002b599766f800 CR3=00000000074c4000 CR4=000006e0 Unsupported return value: 0xffffffff

In a second attempt I got

RAX=00002b80af1d7d20 RBX=00002b80af1d49e8 RCX=0000000000000008 RDX=0000000000000008
RSI=00002b80af393800 RDI=000000000053f478 RBP=00007fffff9fa2c0 RSP=00007fffff9fa1d8
R8 =00002b80af393800 R9 =0000000000000000 R10=000000000053f478 R11=0000000000000002
R12=0000000000000000 R13=0000000000000005 R14=00002b80af0d54b0 R15=0000000000402a18
RIP=00002b80af0ce390 RFL=00010287 [--S--PC] CPL=3 II=0 A20=1 HLT=0 ES =0000 0000000000000000 00000000 00000000
CS =0033 0000000000000000 ffffffff 00affa00
SS =002b 0000000000000000 ffffffff 00cff200
DS =0000 0000000000000000 00000000 00000000
FS =0000 0000000000000000 00000000 00000000
GS =0000 0000000000000000 00000000 00000000
LDT=0000 0000000000000000 00000000 00008000
TR =0040 ffffffff8030e000 0000206f 80008930
GDT= ffffffff8030c000 00000080
IDT= ffffffff8030d000 00001000
CR0=8005003b CR2=00002b80af393800 CR3=0000000007b48000 CR4=000006e0 Unsupported return value: 0xffffffff

For every such test, the host's dmesg and kernel logs reported the following:

kqemu: aborting: Unexpected exception 0x0d in monitor space err=0000 CS:EIP=f180:00000000f0002806 SS:SP=0000:00000000f00c7e00

The above crash does not happen when qemu-system-x86_64 is invoked with the additional option "-no-kqemu".

In case this issue is already known: is there any way to avoid this crash (maybe some boot time parameter for the Debian guest kernel?) without disabling kqemu?

Any suggestions for additional information gathering here which could help solve this issue?

Best regards (and *many* thanks for QEMU)

J Esteves

Signature · 1 line
+351 939838775   Skype:jmcerqueira   http://del.icio.us/jmce
#1 lore raw
Quoted 4 lines · J M Cerqueira Esteves

Summary: qemu-system-x86_64 with kqemu (running under Ubuntu on a Athlon
64) crashes while installing a guest Debian amd64 testing (etch) system, with the host reporting (in kernel logs):
kqemu: aborting: Unexpected exception 0x0d in monitor space

I forgot to mention that a (32 bit) Windows XP Pro guest has been running without problems on the same qemu-system-x86_64.

Signature · 1 line
+351 939838775   Skype:jmcerqueira   http://del.icio.us/jmce
#2 lore raw

[Qemu-devel] kernel command line

Hi all,
I want to boot Linux using NFS root, on MSys on Windows, so the option I give to execute Qemu ARM system is as:
-append "root=/dev/nfs nfsroot=192.168.7.1:/c/cygwin/nfsqemu rw ip=192.168.7.2:192.168.7.1:192.168.7.1:255.255.255.0:::off" (attention the ";" and ":" character)

And when Linux boots, I got the following line on the Qemu's screen:
Kernel command line: root=C:\msys\1.0\dev\nfs nfsroot=192.168.7.1;/c/cygwin/nfsqemu rw ip=192.168.7.2;192.168.7.1;192.168.7.1;255.255.255.0;off

The kernel command line I give is changed automactically, and then Linux can not boot successfully. So I don't know exactly if this change is the reason of problem or not?
If it is, do you have any suggestion?
Thanks a lot
Tieu

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#3 lore raw

Re: [Qemu-devel] kernel command line

Quoted 7 lines · Tieu Ma Dau

Hi all,
I want to boot Linux using NFS root, on MSys on Windows, so the option I
give to execute Qemu ARM system is as: -append "root=/dev/nfs nfsroot=192.168.7.1:/c/cygwin/nfsqemu rw ip=192.168.7.2:192.168.7.1:192.168.7.1:255.255.255.0:::off" (attention the ";" and ":" character)

Quoted 8 lines

And when Linux boots, I got the following line on the Qemu's screen:
Kernel command line: root=C:\msys\1.0\dev\nfs
nfsroot=192.168.7.1;/c/cygwin/nfsqemu rw ip=192.168.7.2;192.168.7.1;192.168.7.1;255.255.255.0;off

The kernel command line I give is changed automactically, and then Linux can not boot successfully. So I don't know exactly if this change is the reason of problem or not? If it is, do you have any suggestion?

This is almost certainly caused by MSYS, probably your shell, and not a qemu problem.

Paul

#4 lore raw

Re: [Qemu-devel] kernel command line

In reply to Tieu Ma Dau
Quoted 4 lines · Tieu Ma Dau

And when Linux boots, I got the following line on the Qemu's screen:
Kernel command line: root=C:\msys\1.0\dev\nfs
nfsroot=192.168.7.1;/c/cygwin/nfsqemu rw ip=192.168.7.2;192.168.7.1;192.168.7.1;255.255.255.0;off

This is a MSys feature that lets you run non-msys programs from within it's shells. Run Qemu from cmd.exe and you won't have this problem.

Signature · 4 lines
< Jernej Simonèiè ><><><><>< http://deepthought.ena.si/ >

The only way a reporter should look at a politician is down.
       -- Kent's Law
#5 lore raw
In reply to J M Cerqueira Esteves
Quoted 4 lines · J M Cerqueira Esteves

Summary: qemu-system-x86_64 with kqemu (running under Ubuntu on a Athlon
64) crashes while installing a guest Debian amd64 testing (etch) system, with the host reporting (in kernel logs):
kqemu: aborting: Unexpected exception 0x0d in monitor space

However, with the same setup, and with kqemu active, I was able to install Kubuntu 6.06 amd64, without experiencing such a crash.

Still, two issues with that Kubuntu instance:

- grub segfaulted, failing to install the boot loader on the hard disk image (I ended up using lilo instead);
this also happened previously when trying to install debian testing amd64 *without using kqemu* (maybe some grub bug?);

- without or without the kernel option
clock=pit
I got, already at boot time:

Losing some ticks... checking if CPU frequency changed [...]
warning: many lost ticks
Your time source seems to be instable or some driver is hogging interupts

and now, about 1.5 hour after booting, the guest clock is about 1.5 hour ahead of the host clock (maybe because the host has been idle and working at about 1/2 the full clock speed?) This clock shifting did not occur with a Windows XP Pro guest, which usually remained late by less than 1 minute.

Best regards
J Esteves

Signature · 1 line
+351 939838775   Skype:jmcerqueira   http://del.icio.us/jmce
#6 lore raw
In reply to J M Cerqueira Esteves
Quoted 6 lines · J M Cerqueira Esteves

Greetings

Summary: qemu-system-x86_64 with kqemu (running under Ubuntu on a Athlon
64) crashes while installing a guest Debian amd64 testing (etch) system, with the host reporting (in kernel logs):
kqemu: aborting: Unexpected exception 0x0d in monitor space

Sounds like a kqemu bug. 0x0d == 14 == page fault. The only person who can help you here is Fabrice...

Regards,

Anthony Liguori

Quoted 79 lines

Host CPU: AMD Athlon 64 3500+ (machine: HP dx5150 MT) Host operating
system: Ubuntu 6.06 LTS Host kernel: one of the Ubuntu pre-packaged ones,

             2.6.15-26-amd64-k8 (SMP PREEMPT)

VDE: 'backported' (just rebuilding the package)

     from Debian testing's vde 1.5.11-1.

QEMU: 0.8.2, configured with -cc=gcc-3.4 --enable-alsa kqemu: 1.3.0pre9

I tried to install Debian amd64 testing (etch) from a snapshot netinst iso image downloaded yesterday, invoking

    vdeq qemu-system-x86_64 \
	-pidfile /srv/qemu/nisaba.pid \
	-m 160 \
	-net nic,vlan=0,model=rtl8139,macaddr=4A:4D:23:00:00:01 \ -net
	vde,vlan=0,sock=/var/run/vde/tap-vde-1.ctl \ -hda /srv/qemu/$NAME.qcow \
        -cdrom /srv/ark/cd/debian-testing-amd64-netinst-20060810.iso \
	-boot d

Booted in expert mode, chose language, keyboard layout, country, locale parameters, and just after I chose "detect and mount cdrom" qemu crashed (apparently immediately after (very briefly) showing a progress bar with "detecting hardware to find cd-rom drives"), with the (host-side) output

ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00affa00 SS =002b 0000000000000000 ffffffff 00cff200 DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 0000000000000000 00000000 00000000 LDT=0000 0000000000000000 00000000 00008000 TR =0040 ffffffff8030e000 0000206f
80008930 GDT= ffffffff8030c000 00000080
IDT= ffffffff8030d000 00001000
CR0=8005003b CR2=00002b599766f800 CR3=00000000074c4000 CR4=000006e0 Unsupported return value: 0xffffffff

In a second attempt I got

RAX=00002b80af1d7d20 RBX=00002b80af1d49e8 RCX=0000000000000008 RDX=0000000000000008
RSI=00002b80af393800 RDI=000000000053f478 RBP=00007fffff9fa2c0 RSP=00007fffff9fa1d8
R8 =00002b80af393800 R9 =0000000000000000 R10=000000000053f478 R11=0000000000000002
R12=0000000000000000 R13=0000000000000005 R14=00002b80af0d54b0 R15=0000000000402a18
RIP=00002b80af0ce390 RFL=00010287 [--S--PC] CPL=3 II=0 A20=1 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00affa00 SS =002b 0000000000000000 ffffffff 00cff200 DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 0000000000000000 00000000 00000000 LDT=0000 0000000000000000 00000000 00008000 TR =0040 ffffffff8030e000 0000206f
80008930 GDT= ffffffff8030c000 00000080
IDT= ffffffff8030d000 00001000
CR0=8005003b CR2=00002b80af393800 CR3=0000000007b48000 CR4=000006e0 Unsupported return value: 0xffffffff

For every such test, the host's dmesg and kernel logs reported the following:

kqemu: aborting: Unexpected exception 0x0d in monitor space err=0000 CS:EIP=f180:00000000f0002806 SS:SP=0000:00000000f00c7e00

The above crash does not happen when qemu-system-x86_64 is invoked with the additional option "-no-kqemu".

In case this issue is already known: is there any way to avoid this crash (maybe some boot time parameter for the Debian guest kernel?) without disabling kqemu?

Any suggestions for additional information gathering here which could help solve this issue?

Best regards (and *many* thanks for QEMU)

J Esteves

#7 lore raw
Quoted 8 lines · Anthony Liguori
Quoted 4 lines · J M Cerqueira Esteves

Summary: qemu-system-x86_64 with kqemu (running under Ubuntu on a Athlon
64) crashes while installing a guest Debian amd64 testing (etch) system, with the host reporting (in kernel logs):
kqemu: aborting: Unexpected exception 0x0d in monitor space

Sounds like a kqemu bug. 0x0d == 14 == page fault. The only person who can help you here is Fabrice...

Meanwhile I got some hope for a temporary trick when I tried the option -smp 2 and this error did not show up... but then I noticed that, with the -smp 2 option, kqemu is disabled...

Best regards
J Esteves

Signature · 1 line
+351 939838775   Skype:jmcerqueira   http://del.icio.us/jmce