Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 815338

Summary: qemu-kvm hangs after boot a guest
Product: Red Hat Enterprise Linux 6 Reporter: Xiaoqing Wei <xwei>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: acathrow, akong, bsarathy, dyasny, juzhang, michen, mkenneth, shuang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-24 03:53:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
debug trace
none
sosreport
none
thread apply all bt full
none
gdb.info.all-registers none

Description Xiaoqing Wei 2012-04-23 12:11:55 UTC
Description of problem:

qemu-kvm hangs after boot a guest
[sosreport attached]

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.209.el6_2.5.x86_64
seabios-0.6.1.2-8.el6.x86_64
sgabios-0-0.3.20110621svn.el6.x86_64
vgabios-0.6b-3.6.el6.noarch
guest is RHEL.5.8.GA.32

How reproducible:
Very Very Very rare

Steps to Reproduce:
1. boot a guest by:
/home/staf-kvm-devel/autotest-devel/client/tests/kvm/qemu -name vm1 -nodefaults -chardev socket,id=qmp_monitor_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20120423-170716-cBdP,server,nowait -mon chardev=qmp_monitor_id_qmpmonitor1,mode=control -chardev socket,id=serial_id_20120423-170716-cBdP,path=/tmp/serial-20120423-170716-cBdP,server,nowait -device isa-serial,chardev=serial_id_20120423-170716-cBdP -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 -drive file=/home/staf-kvm-devel/autotest-devel/client/tests/kvm/images/RHEL-Server-5.8-32-virtio.qcow2,index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,boot=off,snapshot=off,readonly=off,format=qcow2,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=id718kw6,mac=9a:f0:54:6e:2a:2e,id=ndev00id718kw6,bus=pci.0,addr=0x3 -netdev tap,id=id718kw6,vhost=on,fd=21 -m 2G -smp 4,cores=2,threads=1,sockets=2 -cpu Westmere -device usb-tablet,id=usb-tablet1,bus=usb1.0 -spice port=8001,disable-ticketing -vga qxl -rtc base=utc,clock=host,driftfix=slew -M rhel6.2.0 -boot order=cdn,once=c,menu=off -no-kvm-pit-reinjection -enable-kvm
2.
3.
  
Actual results:
guest runs normal for a one or two min, then hang

Expected results:
guest work well

Additional info:
# top -p 8341 -H -n 1

top - 20:01:37 up  8:36,  3 users,  load average: 0.09, 0.03, 0.01
Tasks:   6 total,   1 running,   5 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.3%us,  1.4%sy,  0.0%ni, 93.0%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7872976k total,  2439344k used,  5433632k free,    10608k buffers
Swap: 33554416k total,        0k used, 33554416k free,  1631136k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                  
 8341 root      20   0 2808m 366m 4952 R 39.8  4.8  51:30.69 qemu                                     
 8348 root      20   0 2808m 366m 4952 S  2.0  4.8   0:17.09 qemu                                     
 8344 root      20   0 2808m 366m 4952 S  0.0  4.8   0:19.08 qemu                                     
 8345 root      20   0 2808m 366m 4952 S  0.0  4.8   0:07.63 qemu                                     
 8346 root      20   0 2808m 366m 4952 S  0.0  4.8   0:07.21 qemu                                     
 8347 root      20   0 2808m 366m 4952 S  0.0  4.8   0:07.01 qemu                                     

sosreport, gdb info(thread apply all bt full), debug trace, etc will be attached soon.

Comment 1 Xiaoqing Wei 2012-04-23 12:13:43 UTC
# kvm_stat -1
efer_reload                    0         0
exits                   10503061         0
fpu_reload                  1645         0
halt_exits                541774         0
halt_wakeup               173566         0
host_state_reload        5649217         0
hypercalls                     0         0
insn_emulation           2686493         0
insn_emulation_fail            0         0
invlpg                         0         0
io_exits                 5278217         0
irq_exits                  75093         0
irq_injections            565084         0
irq_window                  7785         0
largepages                   488         0
mmio_exits                 63321         0
mmu_cache_miss               407         0
mmu_flooded                    0         0
mmu_pde_zapped                 0         0
mmu_pte_updated                0         0
mmu_pte_write              17880         0
mmu_recycled                   0         0
mmu_shadow_zapped            405         0
mmu_unsync                     0         0
nmi_injections                 0         0
nmi_window                     0         0
pf_fixed                    3304         0
pf_guest                       0         0
remote_tlb_flush              37         0
request_irq                    0         0
signal_exits                  14         0
tlb_flush                      0         0

Comment 2 Xiaoqing Wei 2012-04-23 12:14:19 UTC
(gdb) info registers 
rax            0xfffffffffffffdfe	-514
rbx            0x7fff4b84a5b0	140734460372400
rcx            0xffffffffffffffff	-1
rdx            0x7fff4b84a530	140734460372272
rsi            0x7fff4b84a5b0	140734460372400
rdi            0x38	56
rbp            0x7fff4b84a530	0x7fff4b84a530
rsp            0x7fff4b84a490	0x7fff4b84a490
r8             0x7fff4b84a630	140734460372528
r9             0x4f953ea9	1335180969
r10            0x7fff4b84a4b0	140734460372144
r11            0x293	659
r12            0x7fff4b84a4b0	140734460372144
r13            0x0	0
r14            0x1	1
r15            0x7fd4170e5000	140548896608256
rip            0x7fd413b418b3	0x7fd413b418b3 <select+51>
eflags         0x293	[ CF AF SF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) q

Comment 3 Xiaoqing Wei 2012-04-23 12:16:11 UTC
Created attachment 579516 [details]
debug trace

Comment 4 Xiaoqing Wei 2012-04-23 12:17:25 UTC
Created attachment 579517 [details]
sosreport

Comment 5 Xiaoqing Wei 2012-04-23 12:19:11 UTC
Created attachment 579519 [details]
thread apply all bt full

Comment 6 Xiaoqing Wei 2012-04-23 12:20:20 UTC
Created attachment 579520 [details]
gdb.info.all-registers

Comment 8 Xiaoqing Wei 2012-04-24 03:53:21 UTC
Sorry for report it in a rush, this should be an autotest bug

Bug 815606 - [KVM_AUTOTEST] autotest stops vm for image_check and did not resume it if image leaks