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

Joachim Sehlstedt
2007-04-29T03:53:52Z

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