public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: Guest lockup and 100% CPU load on host
@ 2009-01-15 22:10 Jan C. Bernauer
  2009-01-15 23:00 ` James Thomason
  0 siblings, 1 reply; 3+ messages in thread
From: Jan C. Bernauer @ 2009-01-15 22:10 UTC (permalink / raw)
  To: kvm

Hi,
 
 while I was trying to get pci passthrough to work without vt-d using 
the 1to1 mapping (it works ;),
I stumbled upon a solid lock up of the guest. 
(Unpatched source shows the same behaviour)

 I see a strange look up of the guest OS with the following "features":
 - guest doesn't respond anymore
 - triggered by load in the guest. 
 - it seems it is easier to trigger with -smp 2
 - host shows qemu process with 100% cpu
 - seems to be cured by  --no-kvm-irqchip 
 - --no-kvm-pit does not help
 - qmeu console command system_reset works
 
Right now, guest OS is linux 2.6.27.1
Latest KVM from git, host is 2.6.28.
Older kvms seem to exhibit the same problem.


short gdb session:

Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7f9dfbb7c6f0 (LWP 13898)]
0x00007f9dfa4e1a92 in select () from /lib/libc.so.6
(gdb) info threads
  2 Thread 0x7f9dd7d54950 (LWP 13907)  0x00007f9dfa4e1027 in ioctl () 
from /lib/libc.so.6
* 1 Thread 0x7f9dfbb7c6f0 (LWP 13898)  0x00007f9dfa4e1a92 in select () 
from /lib/libc.so.6
(gdb) bt
#0  0x00007f9dfa4e1a92 in select () from /lib/libc.so.6
#1  0x0000000000409a2b in main_loop_wait (timeout=0) at 
/usr/src/kvm-userspace/qemu/vl.c:3639
#2  0x0000000000518c6a in kvm_main_loop () at 
/usr/src/kvm-userspace/qemu/qemu-kvm.c:600
#3  0x000000000040db93 in main (argc=<value optimized out>, 
argv=0x7fff03badc08, envp=<value optimized out>)
    at /usr/src/kvm-userspace/qemu/vl.c:3801
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f9dd7d54950 (LWP 13907))]#0  
0x00007f9dfa4e1027 in ioctl () from /lib/libc.so.6
(gdb) bt
#0  0x00007f9dfa4e1027 in ioctl () from /lib/libc.so.6
#1  0x0000000000545d8e in kvm_run (kvm=0xde1040, vcpu=0, env=0xe5b070) 
at libkvm.c:887
#2  0x0000000000518d89 in kvm_cpu_exec (env=<value optimized out>) at 
/usr/src/kvm-userspace/qemu/qemu-kvm.c:210
#3  0x0000000000519078 in ap_main_loop (_env=<value optimized out>) at 
/usr/src/kvm-userspace/qemu/qemu-kvm.c:417
#4  0x00007f9dfb032007 in start_thread () from /lib/libpthread.so.0
#5  0x00007f9dfa4e838d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()


kvm is started by:

/usr/local/bin/qemu-system-x86_64   -vnc :2 -drive 
file=/dev/mapper/mykvmparition,if=virtio,boot=on -net 
nic,model=virtio,macaddr=52:54:00:12:34:a0 -net 
tap,script=/etc/kvm/kvm-ifup,downscript=/etc/kvm/kvm-ifdown  -m 512

Host is an AMD 4850e, all OS are 64bit.

The syslog  on the host seems clean. 

If you have anything for me to try or need some more information, let me 
know.

Best regards,
Jan






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-16 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 22:10 BUG: Guest lockup and 100% CPU load on host Jan C. Bernauer
2009-01-15 23:00 ` James Thomason
2009-01-16 10:13   ` Jan Bernauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox