Skip to contentSkip to conversation

Qemu crashes when running kvm-20/21 as module in kernel 2.6.21

DISCUSSION Joachim Sehlstedt 2 participants 3 messages Apr 29, 2007 2 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi,

First I tried kvm build into the kernel, 2.6.21, togeather with kvm-17, no problem at all, except that qemu shuts down when I do a reboot in the guest os. Is there any fix for that btw, guest os is Linux Slackware 11.0 with kernel 2.6.21?

After that I tried upgrading to kvm-21, removing kvm from the kernel. Now qemu crashes on startup, but works if I use the -no-kvm switch, also tried kvm-20 with same problem. I get no error when I load the modules so I assume they load just fine.

lsmod:

Module                  Size  Used by
kvm_intel              19596  0
kvm                    60592  1 kvm_intel

CPU: Intel Core 2 CPU
OS: Linux Slackware 10.2
Kernel: 2.6.21
GCC: 3.4.6
QEMU: /usr/local/kvm/bin/qemu -m 256 -hda hda.img -vnc 10.0.0.1:1 ERROR
exception 13 (0)
rax 000000000000f001 rbx 000000000000d6f3 rcx 0000000000000001 rdx 0000000000000000
rsi 00000000ffff004c rdi 000000000004f7f4 rsp 000000000000ffb8 rbp 000000000000ffcc
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
rip 0000000000000a45 rflags 00033002
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) es 07c0 (00007c00/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) tr 0000 (10850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt fa4e4/30
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
Aborted

Here is the backtrace from gdb

#0  0xb7d0e027 in raise () from /lib/tls/libc.so.6
#1  0xb7d0f747 in abort () from /lib/tls/libc.so.6
#2  0x081154e1 in kvm_run (kvm=0x9b2d008, vcpu=0) at kvmctl.c:746
#3  0x080cbfb2 in kvm_cpu_exec (env=0x0) at 

/root/kvm/kvm-21/qemu/qemu-kvm.c:467
#4 0x080cd39a in cpu_x86_exec (env1=0x6) at /root/kvm/kvm-21/qemu/cpu-exec.c:411
#5 0x08052ba8 in main_loop () at /root/kvm/kvm-21/qemu/vl.c:6272

Am I doing something wrong?

greetings
JS

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 7 lines · Joachim Sehlstedt

Hi,

First I tried kvm build into the kernel, 2.6.21, togeather with kvm-17, no problem at all, except that qemu shuts down when I do a reboot in the guest os. Is there any fix for that btw, guest os is Linux Slackware 11.0 with kernel 2.6.21?

That's a known problem. A fix will be available eventually, but it will take some time.

Quoted 6 lines

After that I tried upgrading to kvm-21, removing kvm from the kernel. Now qemu crashes on startup, but works if I use the -no-kvm switch, also tried kvm-20 with same problem. I get no error when I load the modules so I assume they load just fine.

[...]

Quoted 2 lines

Am I doing something wrong?

If the image is not too huge, and if it contains no private information, can you post it somewhere for me to download? I'll have a look.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): 4634527F.7000806-atKUWr5tajBWk0Htik3J/[email protected]

#4 lore raw

I was a bit quick and deleted it. Forgot to mention that the disk image at some point magically got converted to raw format, from cow. Maybe it got corrupted when I convert it to qcow2 or by qemu itself.

This makes sence since if you try to boot qemu with a empty disk image you get the same crash.

greetings
JS

Quoted 7 lines · Avi Kivity

[...]

If the image is not too huge, and if it contains no private information, can you post it somewhere for me to download? I'll have a look.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/