Bug 1042664

Summary: Win8.1.i386 guest cannot reboot after rebooting many times
Product: Red Hat Enterprise Linux 7 Reporter: ShupingCui <scui>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: hhuang, huding, juzhang, knoel, kraxel, michen, rbalakri, virt-maint, yvugenfi
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: 2016-07-25 14:54:02 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:
Attachments:
Description Flags
Restarting screen none

Description ShupingCui 2013-12-13 02:27:16 UTC
Description of problem:
Win8.1.i386 guest cannot reboot after rebooting many times, will hang on Restarting screen.

Version-Release number of selected component (if applicable):
# uname -r
3.10.0-60.el7.x86_64
# rpm -qa | grep qemu-kvm
qemu-kvm-1.5.3-21.el7.x86_64

How reproducible:
80%

Steps to Reproduce:
1. boot the win8.1.i386 guest
/usr/libexec/qemu-kvm \
    -name 'virt-tests-vm1'  \
    -sandbox off  \
    -M pc  \
    -nodefaults  \
    -vga std  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20131212-165504-pXdqyaPD,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20131212-165504-pXdqyaPD,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20131212-165504-pXdqyaPD,path=/tmp/seabios-20131212-165504-pXdqyaPD,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20131212-165504-pXdqyaPD,iobase=0x402 \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=03 \
    -drive id=drive_image1,if=none,cache=writeback,snapshot=off,aio=native,file=/root/staf-kvm-devel/autotest/client/tests/virt/shared/data/images/win8-32-virtio.qcow2 \
    -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=04 \
    -device virtio-net-pci,mac=9a:cc:cd:ce:cf:d0,id=idvEiBIi,netdev=id6xPqgT,bus=pci.0,addr=05  \
    -netdev tap,id=id6xPqgT,vhost=on,vhostfd=23,fd=22  \
    -m 1024  \
    -smp 2,maxcpus=2,cores=1,threads=1,sockets=2  \
    -cpu 'SandyBridge',+sep \
    -drive id=drive_cd1,if=none,snapshot=off,aio=native,media=cdrom,file=/root/staf-kvm-devel/autotest/client/tests/virt/shared/data/isos/windows/winutils.iso \
    -device ide-cd,id=cd1,drive=drive_cd1,bootindex=1,bus=ide.0,unit=0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -vnc :0  \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot order=cdn,once=c,menu=off \
    -enable-kvm \
    -monitor stdio
2. reboot the guest when boot up
3. repeat step2 for many times(> 20)

Actual results:
guest can reboot successfully

Expected results:
guest hang on Restarting screeen

Additional info:
(qemu) info registers
EAX=00000000 EBX=84294ae8 ECX=ffd09da8 EDX=00000000
ESI=81628120 EDI=00000000 EBP=828a6b90 ESP=828a6ae8
EIP=819e46ef EFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1
ES =0023 00000000 ffffffff 00c0f300 DPL=3 DS   [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
DS =0023 00000000 ffffffff 00c0f300 DPL=3 DS   [-WA]
FS =0030 81628000 00004628 00409300 DPL=0 DS   [-WA]
GS =0000 00000000 ffffffff 00000000
LDT=0000 00000000 000fffff 00000000
TR =0028 81300000 000020ab 00008b00 DPL=0 TSS32-busy
GDT=     81303000 000003ff
IDT=     81303400 000007ff
CR0=80010033 CR2=0037433a CR3=001a5000 CR4=000406e8
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000800
FCW=037f FSW=3000 [ST=6] FTW=ff MXCSR=00001f80
FPR0=9fc0000000000000 4008 FPR1=9fc0000000000000 4008
FPR2=9fc0000000000000 4008 FPR3=9fc0000000000000 4008
FPR4=9fc0000000000000 4008 FPR5=9fc0000000000000 4008
FPR6=9fc0000000000000 4008 FPR7=9fc0000000000000 4008
XMM00=96da29a84bc656214f766cc7b6a8ec9e XMM01=76fdd12623a9289842b9b762bd736c3e
XMM02=011422ae57194a86e7e196e668277c74 XMM03=8720ad0b9a513f678e4cb00418bcf6de
XMM04=c087793d881e41b100c13ac89aa2954a XMM05=661f24516f7f00b3105165364c9094b8
XMM06=96da29a84bc656214f766cc7b6a8ec9e XMM07=1ee44d43cee08dd4e7dd47613d6aaae3

Host infos:
processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
stepping	: 7
microcode	: 0x29
cpu MHz		: 1679.414
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	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep 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 nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6784.74
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

             total       used       free     shared    buffers     cached
Mem:          7609       5187       2422          4          0       4740
-/+ buffers/cache:        446       7163
Swap:         7951         49       7902

Comment 1 ShupingCui 2013-12-13 02:28:31 UTC
Created attachment 836085 [details]
Restarting screen

will hang on this Restarting screen

Comment 4 Mike Cao 2013-12-18 06:16:25 UTC
Hi,scui

pls enable NMICrashdump for the guest http://support.microsoft.com/kb/927069 ,and generate dump file by using (qemu) NMI 

Thanks,
Mike

Comment 5 ShupingCui 2013-12-24 01:59:05 UTC
(In reply to Mike Cao from comment #4)
> Hi,scui
> 
> pls enable NMICrashdump for the guest http://support.microsoft.com/kb/927069
> ,and generate dump file by using (qemu) NMI 
> 
> Thanks,
> Mike

ok, thanks for your help, i will try it and provide the dump file when i get it.