public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Zach Carter <z.carter@f5.com>
To: <kvm@vger.kernel.org>
Subject: qemu-kvm 0.12.4 hanging forever
Date: Thu, 1 Jul 2010 15:37:29 -0700	[thread overview]
Message-ID: <201007011537.30083.z.carter@f5.com> (raw)

Hi:

Under certain 100% reproducible circumstances, when I try to run qemu-kvm, it 
completely hangs without appearing to do anything

I have tried this with qemu-kvm 0.12.4 and with the latest code from the git 
repository. 

Here are some more interesting details.  The 64 bit host, kernel, and kvm 
kernel module are all vanilla CentOS 5.4.  If I use the kmod-
kvm-83-105.el5_4.9 version of the kernel module, it works fine.  Yum update to 
anything past that and the hang occurs 100% of the time.  Update all the way 
to the very latest CentOS 5.5 packages, and I still get the hang.  Downgrade 
just the kvm kernel modules and it starts working again.

I'm sure I could use the qemu-kvm that ships from CentOS with the 
corresponding kernel module, however that lacks certain essential features, 
including support for scsi disk drive emulation.

After messing around with gdb and some printf statements, it looks to me like 
it just loops forever and ever in the "while (1)" loop on about line 1710 of 
qemu-kvm.c.   Killing it and grabbing a backtrace shows that it is spending 
its time mostly sitting in the "select" system call on about line 1288 in 
vt.c.  Maybe its normal to sit in that loop and poll for events, but something 
else should happen eventually.  What is it waiting for?

If I add the -no-kvm option to the command line, it works fine.

Any ideas on how to further troubleshoot?

thanks!

-Zach

My command line:

/opt/qemu-git/bin/qemu-system-x86_64 -drive 
file=my.vmdk,if=scsi,cache=writeback -cdrom my.iso -boot d -nographic -m 1024 -
no-kvm-irqchip -kernel my.vmlinuz -initrd my.initrd.img -append 
'initrd=initrd.img root=/dev/ram0 console=tty0 console=ttyS0,19200 quiet 
action=install mode=silent ramdisk_size=147169 mkvm_cpu_lm 
mkvm_device=/dev/sda mkvm'

             reply	other threads:[~2010-07-01 22:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01 22:37 Zach Carter [this message]
2010-07-01 23:02 ` qemu-kvm 0.12.4 hanging forever Brian Jackson
2010-07-02 17:28   ` Zach Carter
2010-07-02 18:51     ` David S. Ahern

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=201007011537.30083.z.carter@f5.com \
    --to=z.carter@f5.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox