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 684719 - Windows guests hang when rebooting with kernel-2.6.32-121.el6
Summary: Windows guests hang when rebooting with kernel-2.6.32-121.el6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Marcelo Tosatti
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 692634 (view as bug list)
Depends On: 697703
Blocks: 684385
TreeView+ depends on / blocked
 
Reported: 2011-03-14 10:34 UTC by Qunfang Zhang
Modified: 2013-01-09 23:39 UTC (History)
19 users (show)

Fixed In Version: kernel-2.6.32-131.0.2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 20:43:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The screenshot when guest hang (10.46 KB, image/png)
2011-03-14 10:35 UTC, Qunfang Zhang
no flags Details
hangs in shutting down (391.34 KB, image/png)
2011-03-16 07:35 UTC, Chao Yang
no flags Details
Screenshot of the error (34.34 KB, image/png)
2011-04-10 09:45 UTC, IBM Bug Proxy
no flags Details
/var/log/message and sosreport of the host (1.28 MB, application/x-gzip)
2011-04-10 09:45 UTC, IBM Bug Proxy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0542 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 6.1 kernel security, bug fix and enhancement update 2011-05-19 11:58:07 UTC

Description Qunfang Zhang 2011-03-14 10:34:46 UTC
Description of problem:
Boot a windows guest and then reboot, it always hangs on a black screen. qemu-kvm processor consumes 100% cpu. Tried kernel-2.6.32-120.el6, this issue does not exist.

Version-Release number of selected component (if applicable):
kernel-2.6.32-122.el6
qemu-kvm-0.12.1.2-2.150.el6.x86_64
seabios-0.6.1.2-3.el6.x86_64
vgabios-0.6b-3.5.el6.noarch
install tree:
RHEL6.1-20110311.3

How reproducible:
Always

Steps to Reproduce:
1.Boot a windows guest:
 /usr/libexec/qemu-kvm -m 6G -smp 4 -cpu cpu64-rhel6,+x2apic -usbdevice tablet -drive file=/home/win2008-32.qcow2,format=qcow2,if=none,id=drive-ide0-0-0,werror=stop,rerror=stop,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,id=hostnet0,script=/etc/qemu-ifup1 -device e1000,netdev=hostnet0,mac=00:10:20:3d:39:1a,bus=pci.0,addr=0x4,id=net0 -boot c -uuid 51ace944-9188-45de-818e-799f794d15e3 -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio -name win2k8-32-serial -vnc :10

2.reboot guest.
3.
  
Actual results:
Guest hangs

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 7188 root      20   0 6710m 5.9g 3528 S 200.2 25.3   1:52.10 qemu-kvm         
 6667 root      20   0  282m 2608 1972 S  0.3  0.0   0:01.82 matahari-hostd    
    1 root      20   0 19312 1528 1228 S  0.0  0.0   0:01.69 init    

Expected results:
Guest can boot up successfully.

Additional info:
Host cpu info: (16 cpus in total)
processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 2260.873
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4521.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

Comment 1 Qunfang Zhang 2011-03-14 10:35:53 UTC
Created attachment 484136 [details]
The screenshot when guest hang

The screenshot when guest hang.

Comment 4 Qunfang Zhang 2011-03-15 03:20:27 UTC
Found the problem happens in kernel-120 sometimes too. But its reproducibility is very lower than 121.
In kernel 148, I have not met this problem.

Comment 5 Chao Yang 2011-03-15 10:30:42 UTC
Hit same issue when install windows7-64 guest on AMD host.
How reproducible:
2/2

# uname -r
2.6.32-122.el6.x86_64
# rpm -qa|grep qemu-kvm
qemu-kvm-debuginfo-0.12.1.2-2.150.el6.x86_64
qemu-kvm-0.12.1.2-2.150.el6.x86_64
qemu-kvm-tools-0.12.1.2-2.150.el6.x86_64

# /usr/libexec/qemu-kvm -M rhel6.1.0 -enable-kvm -m 4096 -smp 4 -cpu cpu64-rhel6 -name win7-64 -uuid `uuidgen` -rtc base=localtime,clock=vm,driftfix=slew -no-kvm-pit-reinjection -boot dc -drive file=/root/image/win7-64.qcow2,if=none,id=drive-virtio-0-0,media=disk,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=drive-virtio-0-0,id=virt0-0-0 -netdev tap,id=hostnet1 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:40:81:11:53 -usb -device usb-tablet,id=input1 -spice port=8800,disable-ticketing -monitor stdio -balloon none -cdrom /root/image/en_windows_7_ultimate_x64_dvd_x15-65922.iso -fda /root/virtio-win/virtio-win-1.1.16.vfd 

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                   
 5508 root      20   0 5072m 4.1g 4184 S 104.9 26.3  43:50.50 qemu-kvm                                                                 
 2411 root      20   0  9220  760  480 S  0.3  0.0   0:04.77 irqbalance                                                                
 2858 root      20   0  105m  896  648 S  0.3  0.0   0:00.18 ksmtuned                                                                  
 6203 root      20   0 15264 1592  948 R  0.3  0.0   0:00.46 top

Comment 6 Chao Yang 2011-03-16 07:34:56 UTC
Hit again, click restart button, guest hangs when shutting down

Comment 7 Chao Yang 2011-03-16 07:35:39 UTC
Created attachment 485665 [details]
hangs in shutting down

Comment 8 RHEL Program Management 2011-03-22 10:50:22 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 9 Qunfang Zhang 2011-03-23 07:51:04 UTC
Re-test with kernel-2.6.32-125.el6.x86_64, use the same command line in bug description and boot win7-32.qcow2 guest. The problem still can be reproduce sometimes.

Comment 10 Dor Laor 2011-03-28 12:05:17 UTC
Does it works over Intel host?

Comment 11 Qunfang Zhang 2011-03-28 12:17:40 UTC
(In reply to comment #10)
> Does it works over Intel host?

I found this issue on Intel host.
According to Comment 5, this issue happens on 
AMD host as well.

Comment 12 Qunfang Zhang 2011-03-31 07:40:32 UTC
Hi, Dor
This bug will block the upcoming SVVP test for submission.
We are running svvp regression test with kernel-120 now. 
Could you guys help to have a look at this bug?

Thanks

Comment 14 Qunfang Zhang 2011-04-02 02:07:28 UTC
*** Bug 692634 has been marked as a duplicate of this bug. ***

Comment 15 Mike Cao 2011-04-07 04:30:47 UTC
It is also a testblocker for testing windows installation from WDS Server.

Comment 16 Dor Laor 2011-04-10 08:31:37 UTC
Marcelo, can you produce a private brew build to let QE verify that the fix works early enough?

Comment 17 Dor Laor 2011-04-10 09:40:33 UTC
*** Bug 694747 has been marked as a duplicate of this bug. ***

Comment 18 IBM Bug Proxy 2011-04-10 09:45:27 UTC
Created attachment 491052 [details]
Screenshot of the error

Comment 19 IBM Bug Proxy 2011-04-10 09:45:34 UTC
Created attachment 491053 [details]
/var/log/message and sosreport of the host

Comment 20 Marcelo Tosatti 2011-04-14 07:46:37 UTC
Brew build available at (In reply to comment #16)
> Marcelo, can you produce a private brew build to let QE verify that the fix
> works early enough?

Brew build available at

https://brewweb.devel.redhat.com/taskinfo?taskID=3257445

Comment 21 Qunfang Zhang 2011-04-14 09:08:13 UTC
(In reply to comment #20)
> Brew build available at (In reply to comment #16)
> > Marcelo, can you produce a private brew build to let QE verify that the fix
> > works early enough?
> 
> Brew build available at
> 
> https://brewweb.devel.redhat.com/taskinfo?taskID=3257445

Hi, Marcelo
Verified with the build you provided with win2k8 and win7 images.
Reboot 5 times for each guest and they can restart smoothly.
So this issue is fixed in that build.

Thanks
qunfang

Comment 22 IBM Bug Proxy 2011-04-15 15:44:23 UTC
------- Comment From santwana.samantray.com 2011-04-15 11:30 EDT-------
Hello Redhat,

I feel , the Bug 684719 - Windows guests hang when rebooting with kernel-2.6.32-121.el6, is a different issue as compared to this bug. In this bug, Windows2008 32-bit guest installation isn't proceeding at all with smp > 1.
Installation happens fine when we assign cpu =1.

Thanks,
Santwana

Comment 23 IBM Bug Proxy 2011-04-18 10:31:48 UTC
------- Comment From markwiz.com 2011-04-18 06:22 EDT-------
This was tested with 20110413.1 build for SNAP4 and it still fails.

Comment 24 Qunfang Zhang 2011-04-19 07:42:29 UTC
(In reply to comment #23)
> ------- Comment From markwiz.com 2011-04-18 06:22 EDT-------
> This was tested with 20110413.1 build for SNAP4 and it still fails.

Hi,
Seems the fix is not included in SNAP4. Please have a check after SNAP5 comes out.

Thanks.

Comment 27 Aristeu Rozanski 2011-04-19 19:39:02 UTC
Patch(es) available on kernel-2.6.32-131.0.2.el6

Comment 31 Qunfang Zhang 2011-04-21 02:26:39 UTC
Re-test with kernel-2.6.32-131.0.2.el6, this issue does NOT exist.
But according to Comment 29, the patches were reverted in 131.0.3.el6.
So tried with kernel-2.6.32-131.0.5.el6, the problem happens again. Guest hangs during reboot.

Comment 36 Suqin Huang 2011-04-25 10:13:38 UTC
I can reproduce when install win7.64 in Intel Q9550

1. cmd (blk:ide, nic:rtl8139)
qemu-kvm -drive file=/usr/images/win7-64.qcow2,index=0,if=none,id=drive-ide0-0-0,media=disk,cache=none,format=qcow2,aio=native \
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
-device rtl8139,netdev=idCTN3Lp,mac=9a:db:bf:5d:7a:58,id=ndev00idCTN3Lp,bus=pci.0,addr=0x3 -netdev tap,id=idCTN3Lp,script=/usr/kvm/scripts/qemu-ifup-switch,downscript=no -m 4096 -smp 4,cores=1,threads=1,sockets=4 \
-drive file=/usr/ISO/Windows7/en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso,index=1,if=none,id=drive-ide0-0-1,media=cdrom,readonly=on,format=raw \
-device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive file=/usr/isos/windows/winutils.iso,index=2,if=none,id=drive-ide0-1-0,media=cdrom,readonly=on,format=raw \
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/usr/isos/windows/virtio-win.iso,index=3,if=none,id=drive-ide0-1-1,media=cdrom,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1 -cpu cpu64-rhel6,+sse2,+x2apic -fda /usr/local/staf/test/RHEV/kvm/autotest/client/tests/kvm/images/win7-64/answer.vfd -spice port=8000,disable-ticketing -vga qxl -rtc base=localtime,clock=host,driftfix=none -M rhel6.1.0 -boot order=cdn,once=d,menu=off -usbdevice tablet -enable-kvm
top
2. host ( 4G & 4 cpu)

kernel: 2.6.32-131.0.7.el6.x86_64

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
stepping	: 10
cpu MHz		: 2000.000
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority
bogomips	: 5652.22
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual

3. top

26348 root      20   0 4878m 3.1g 1388 S  8.3 83.3   4:52.70 poll_sche qemu
26381 root      20   0 4878m 3.1g 1388 S  2.7 83.3   0:25.40 epoll_wai qemu
26364 root      20   0 4878m 3.1g 1388 D  2.0 83.3   6:01.39 sync_page qemu
26365 root      20   0 4878m 3.1g 1388 D  1.0 83.3   4:18.86 sync_page qemu
26366 root      20   0 4878m 3.1g 1388 S  0.0 83.3   2:09.33 kvm_vcpu_ qemu
26367 root      20   0 4878m 3.1g 1388 S  0.0 83.3   2:16.86 kvm_vcpu_ qemu

4. kvm_stat

kvm statistics

 efer_reload                  0       0
 exits                 52331952    4586
 fpu_reload             3057635     229
 halt_exits             1411439       0
 halt_wakeup            1213669       0
 host_state_reload     13569004     737
 hypercalls                   0       0
 insn_emulation         7274552     225
 insn_emulation_fail         96       0
 invlpg                 2372511      22
 io_exits              11578010     596
 irq_exits              2806064      64
 irq_injections         2222159     101
 irq_window              332208      18
 largepages                  14       0
 mmio_exits               63350      18
 mmu_cache_miss          141168      11
 mmu_flooded              23281       2
 mmu_pde_zapped           70098       2
 mmu_pte_updated         540302       2
 mmu_pte_write           473296       3
 mmu_recycled                 0       0

5. gdb info

gdb

(gdb) bt
#0  0x0000003293cde9a7 in ioctl () from /lib64/libc.so.6
#1  0x000000000042c294 in kvm_vm_ioctl (s=<value optimized out>, type=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:888
#2  0x000000000042c575 in kvm_get_map (kvm=<value optimized out>, phys_addr=4026531840, len=<value optimized out>,
    opaque=0x0, cb=0x42b040 <kvm_get_dirty_bitmap_cb>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:662
#3  kvm_get_dirty_pages_range (kvm=<value optimized out>, phys_addr=4026531840, len=<value optimized out>, opaque=0x0,
    cb=0x42b040 <kvm_get_dirty_bitmap_cb>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:691
#4  0x000000000042c636 in kvm_physical_sync_dirty_bitmap (start_addr=<value optimized out>, end_addr=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2636
#5  0x00000000004ec315 in cpu_physical_sync_dirty_bitmap (start_addr=4026531840, end_addr=4093640704)
    at /usr/src/debug/qemu-kvm-0.12.1.2/exec.c:2015
#6  0x000000000044aab1 in vga_sync_dirty_bitmap (opaque=0x3448d40) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1580
#7  vga_draw_graphic (opaque=0x3448d40) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1677
#8  vga_update_display (opaque=0x3448d40) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1938
#9  0x00000000004ca6df in qemu_spice_display_refresh (ssd=0x3446ab0) at ui/spice-display.c:242
#10 0x000000000040c10e in dpy_refresh (opaque=0x1f74bb0) at /usr/src/debug/qemu-kvm-0.12.1.2/console.h:268
#11 gui_update (opaque=0x1f74bb0) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:3649
#12 0x000000000040bb70 in qemu_run_timers (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1221
#13 main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4464
#14 0x000000000042b52a in kvm_main_loop () at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2164
#15 0x000000000040ef55 in main_loop (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4640
#16 main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6845

Comment 37 Marcelo Tosatti 2011-04-26 11:01:23 UTC
(In reply to comment #36)
> I can reproduce when install win7.64 in Intel Q9550
> 
> 1. cmd (blk:ide, nic:rtl8139)
> qemu-kvm -drive
> file=/usr/images/win7-64.qcow2,index=0,if=none,id=drive-ide0-0-0,media=disk,cache=none,format=qcow2,aio=native
> \
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
> -device
> rtl8139,netdev=idCTN3Lp,mac=9a:db:bf:5d:7a:58,id=ndev00idCTN3Lp,bus=pci.0,addr=0x3
> -netdev tap,id=idCTN3Lp,script=/usr/kvm/scripts/qemu-ifup-switch,downscript=no
> -m 4096 -smp 4,cores=1,threads=1,sockets=4 \
> -drive
> file=/usr/ISO/Windows7/en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso,index=1,if=none,id=drive-ide0-0-1,media=cdrom,readonly=on,format=raw
> \
> -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
> file=/usr/isos/windows/winutils.iso,index=2,if=none,id=drive-ide0-1-0,media=cdrom,readonly=on,format=raw
> \
> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive
> file=/usr/isos/windows/virtio-win.iso,index=3,if=none,id=drive-ide0-1-1,media=cdrom,readonly=on,format=raw
> -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1 -cpu
> cpu64-rhel6,+sse2,+x2apic -fda
> /usr/local/staf/test/RHEV/kvm/autotest/client/tests/kvm/images/win7-64/answer.vfd
> -spice port=8000,disable-ticketing -vga qxl -rtc
> base=localtime,clock=host,driftfix=none -M rhel6.1.0 -boot
> order=cdn,once=d,menu=off -usbdevice tablet -enable-kvm
> top
> 2. host ( 4G & 4 cpu)
> 
> kernel: 2.6.32-131.0.7.el6.x86_64
> 
> processor : 3
> vendor_id : GenuineIntel
> cpu family : 6
> model  : 23
> model name : Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
> stepping : 10
> cpu MHz  : 2000.000
> cache size : 6144 KB
> physical id : 0
> siblings : 4
> core id  : 3
> cpu cores : 4
> apicid  : 3
> initial apicid : 3
> fpu  : yes
> fpu_exception : yes
> cpuid level : 13
> wp  : yes
> flags  : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36
> clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc
> arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est
> tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority
> bogomips : 5652.22
> clflush size : 64
> cache_alignment : 64
> address sizes : 36 bits physical, 48 bits virtual
> 
> 3. top
> 
> 26348 root      20   0 4878m 3.1g 1388 S  8.3 83.3   4:52.70 poll_sche qemu
> 26381 root      20   0 4878m 3.1g 1388 S  2.7 83.3   0:25.40 epoll_wai qemu
> 26364 root      20   0 4878m 3.1g 1388 D  2.0 83.3   6:01.39 sync_page qemu
> 26365 root      20   0 4878m 3.1g 1388 D  1.0 83.3   4:18.86 sync_page qemu
> 26366 root      20   0 4878m 3.1g 1388 S  0.0 83.3   2:09.33 kvm_vcpu_ qemu
> 26367 root      20   0 4878m 3.1g 1388 S  0.0 83.3   2:16.86 kvm_vcpu_ qemu
> 
> 4. kvm_stat
> 
> kvm statistics
> 
>  efer_reload                  0       0
>  exits                 52331952    4586
>  fpu_reload             3057635     229
>  halt_exits             1411439       0
>  halt_wakeup            1213669       0
>  host_state_reload     13569004     737
>  hypercalls                   0       0
>  insn_emulation         7274552     225
>  insn_emulation_fail         96       0
>  invlpg                 2372511      22
>  io_exits              11578010     596
>  irq_exits              2806064      64
>  irq_injections         2222159     101
>  irq_window              332208      18
>  largepages                  14       0
>  mmio_exits               63350      18
>  mmu_cache_miss          141168      11
>  mmu_flooded              23281       2
>  mmu_pde_zapped           70098       2
>  mmu_pte_updated         540302       2
>  mmu_pte_write           473296       3
>  mmu_recycled                 0       0
> 
> 5. gdb info
> 
> gdb
> 
> (gdb) bt
> #0  0x0000003293cde9a7 in ioctl () from /lib64/libc.so.6
> #1  0x000000000042c294 in kvm_vm_ioctl (s=<value optimized out>, type=<value
> optimized out>)
>     at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:888
> #2  0x000000000042c575 in kvm_get_map (kvm=<value optimized out>,
> phys_addr=4026531840, len=<value optimized out>,
>     opaque=0x0, cb=0x42b040 <kvm_get_dirty_bitmap_cb>) at
> /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:662
> #3  kvm_get_dirty_pages_range (kvm=<value optimized out>, phys_addr=4026531840,
> len=<value optimized out>, opaque=0x0,
>     cb=0x42b040 <kvm_get_dirty_bitmap_cb>) at
> /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:691
> #4  0x000000000042c636 in kvm_physical_sync_dirty_bitmap (start_addr=<value
> optimized out>, end_addr=<value optimized out>)
>     at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2636
> #5  0x00000000004ec315 in cpu_physical_sync_dirty_bitmap
> (start_addr=4026531840, end_addr=4093640704)
>     at /usr/src/debug/qemu-kvm-0.12.1.2/exec.c:2015
> #6  0x000000000044aab1 in vga_sync_dirty_bitmap (opaque=0x3448d40) at
> /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1580
> #7  vga_draw_graphic (opaque=0x3448d40) at
> /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1677
> #8  vga_update_display (opaque=0x3448d40) at
> /usr/src/debug/qemu-kvm-0.12.1.2/hw/vga.c:1938
> #9  0x00000000004ca6df in qemu_spice_display_refresh (ssd=0x3446ab0) at
> ui/spice-display.c:242
> #10 0x000000000040c10e in dpy_refresh (opaque=0x1f74bb0) at
> /usr/src/debug/qemu-kvm-0.12.1.2/console.h:268
> #11 gui_update (opaque=0x1f74bb0) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:3649
> #12 0x000000000040bb70 in qemu_run_timers (timeout=1000) at
> /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1221
> #13 main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4464
> #14 0x000000000042b52a in kvm_main_loop () at
> /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2164
> #15 0x000000000040ef55 in main_loop (argc=<value optimized out>, argv=<value
> optimized out>, envp=<value optimized out>)
>     at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4640
> #16 main (argc=<value optimized out>, argv=<value optimized out>, envp=<value
> optimized out>)
> ---Type <return> to continue, or q <return> to quit---
>     at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6845

Suqin,

This appears to be a different bug. I suppose the guest is hung at the point you attached gdb to qemu-kvm process? 

Please reproduce and gather the following information:

- Screen capture
- In the QEMU monitor:

info registers
cpu_set 1
info registers
cpu_set 2
info registers
cpu_set 3
info registers

- Is it reproducible with other guests?

Comment 38 Dor Laor 2011-04-26 11:19:19 UTC
Also, is win2k8 also affected?

btw: Please refrain of testing the -cpu model+flags.
Just stick to the supported models w/o changing the flags

In case it is another bug, open a new one and verify this one

Comment 39 Gleb Natapov 2011-04-26 13:57:39 UTC
And reproduce without qxl please.

Comment 41 Suqin Huang 2011-04-27 07:29:26 UTC
1. repeat winxp, win2008, win2008r2, win7, win2003 installation (ide/rtl8139/spice) on the same host (Intel Q9550) can not reproduce.

2. It needs around 40 mins to reboot guest while I install win7 on host 4450B

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 15
model		: 107
model name	: AMD Athlon(tm) Dual Core Processor 4450B
stepping	: 2
cpu MHz		: 1000.000
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch lbrv
bogomips	: 2004.10
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps


3. will verify this bug, and open new bug to trace 2. issue

Comment 42 Suqin Huang 2011-04-27 07:55:03 UTC
create bug 699991 to trace issue in comment 36

Change the status to "VERIFIED" according to comment 41, comment 21

Comment 43 IBM Bug Proxy 2011-04-27 15:27:57 UTC
------- Comment From vahegde1.ibm.com 2011-04-27 10:09 EDT-------
Hello Suqin/Red Hat ,
(In reply to comment #25)
> Re-test with kernel-2.6.32-131.0.2.el6, this issue does NOT exist.
> But according to Comment 29, the patches were reverted in 131.0.3.el6.
> So tried with kernel-2.6.32-131.0.5.el6, the problem happens again. Guest hangs
> during reboot.

I got confused. Comment from Suqin (comment #41) says verification is passed. But he has not mentioned which version of the kernel he used. Can you tell me which version has fix to this bug ?

Vasant

Comment 44 Mike Cao 2011-04-28 02:47:17 UTC
hello ,Vasant

In kernel-2.6.32-131.0.2.el6 the patch included ,and reverted in kernel-2.6.32-131.0.3.el6
The patches were included again on kernel-2.6.32-131.0.7.el6.

Mike

Comment 45 IBM Bug Proxy 2011-04-29 13:20:50 UTC
------- Comment From santwana.samantray.com 2011-04-29 09:17 EDT-------
Hello Redhat,

This issue is still reproducible in the build 20110427.0( k.v- 2.6.32-131.0.10.el6.x86_64). When installing a Windows2008-32 bit guest with > 1 vcpu, installation fails. Installation happens fine, if we allocate 1 vcpu.

The ISO is copied on the host server for installation.

The host model is: x3650, Intel Xenon Quad core 3.00GHz, with 16GB memory.

The windows version used is: Windows Server 2008 Datacenter, Enterprise, and Standard with Service Pack 2 Debug/Checked Build (x86) - DVD (English)  version.

ISO: en_windows_server_2008_datacenter_enterprise_standard_sp2_checked_build_x86_dvd_342434.iso.

Thanks,
Santwana

Comment 46 IBM Bug Proxy 2011-04-29 13:40:49 UTC
------- Comment From markwiz.com 2011-04-29 09:30 EDT-------
There will be a significant impact if this is not fixed.

1) KVM test will not be able to exit test without an exception since we are required to run 100% of our test. This bug is currently blocking 4% of our tests.

2) Windows 2008 32 bit guest becomes unusable on RHEL6.1. This would be a significant regression from RHEL6.0 for customers.

Comment 47 IBM Bug Proxy 2011-04-29 16:10:51 UTC
------- Comment From tpnoonan.com 2011-04-29 12:08 EDT-------
Hi Red Hat, You marked RHBZ684719  as Verified and spun off a new RHBZ699991 to cover a separate defect. We tested an early RC and even the part of this problem covered in RHBZ684719 is still failing. This issue is blocking test but more important is a key issue that customers will expect fixed as early as possible i.e. 6.1 or 6.1 day-0 or 6.1.z. Many thanks.

Comment 48 IBM Bug Proxy 2011-04-29 17:00:56 UTC
------- Comment From santwana.samantray.com 2011-04-29 12:58 EDT-------
Hello Redhat,

I tried installing the Windows2008-32 bit guest using a *non-checked build* [en_windows_server_2008_datacenter_enterprise_standard_sp2_x86_dvd_342333.iso]  on the 20110427 build and the installation is passing even if we assign vcpus > 1.

Please note in my previous comment, I was using "Windows Server 2008 Datacenter, Enterprise, and Standard with Service Pack 2 Debug/Checked Build". The issue is still there with the Debug/Checked Build, installation fails allocating more than 1 vcpu.

Thanks,
Santwana

------- Comment From santwana.samantray.com 2011-04-29 12:59 EDT-------
Lowering the priority to high, as we can install the *non-checked* build version of the Windows2008-32 bit.

Comment 49 Miya Chen 2011-05-03 10:28:45 UTC
Hi, IBM

I think the problem of win2008-32 big guest installation failed with more than 1 vcpu when using a Debug build is a different issue with this one(windows hang during reboot), so can you please report a new bug? thanks.

BTW, In our test, we always use the "non-checked" build : en_windows_server_2008_datacenter_enterprise_standard_sp2_x86_dvd_342333.iso

Comment 50 IBM Bug Proxy 2011-05-03 14:11:20 UTC
------- Comment From ryanh.com 2011-05-03 10:03 EDT-------
This IBM bug has always been about install failures on >1 SMP with win2k8 , turns out  it only fails with the debug builds.  At some point, Dor marked this as duplicate of

bug 684719

but, it isn't.

Comment 51 IBM Bug Proxy 2011-05-18 12:21:09 UTC
------- Comment From sglass.com 2011-05-18 08:15 EDT-------
This has been verified and closed on IBM side.

Comment 52 errata-xmlrpc 2011-05-23 20:43:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0542.html


Note You need to log in before you can comment on or make changes to this bug.