Bug 1191320

Summary: Black screen after do the 2nd s3 of the rhel7.1 guest under q35 machine type
Product: Red Hat Enterprise Linux 7 Reporter: Qian Guo <qiguo>
Component: qemu-kvm-rhevAssignee: Amit Shah <amit.shah>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: hhuang, juzhang, mazhang, michen, 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: 2015-03-04 06:02:13 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:
Bug Depends On:    
Bug Blocks: 923626    

Description Qian Guo 2015-02-11 04:36:51 UTC
Description of problem:
Boot rhel7.1 guest with q35 machine type, then can successfully do s3 and resume back the first time, but if do 2nd s3, can not return back and stayed black screen, from the serial, can not get any messages.

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.1.2-23.el7.x86_64
guest/host 
kernel-3.10.0-229.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot rhel7.1 guest with q35 machine type:
# /usr/libexec/qemu-kvm -name rhel7 -S -machine pc-q35-rhel7.1.0,accel=kvm,usb=off -m 4096 -cpu SandyBridge -realtime mlock=on -sandbox on -smp 4,maxcpus=4,sockets=4,cores=1,threads=1 -no-user-config -nodefaults -boot menu=on -drive file=/home/rhel7.1q35/rhel7.1q35.qcow2,if=none,id=drive-blk-disk,format=qcow2,cache=writethrough,werror=stop,rerror=stop -device virtio-blk-pci,scsi=off,bus=pcie.0,addr=0x2,drive=drive-blk-disk,id=virtio-disk0  -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=16,bus=pcie.0,addr=0x3 -device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0  -device virtio-balloon-pci,id=balloon0,bus=pcie.0,addr=0x6 -monitor stdio -qmp tcp:0:4444,server,nowait -serial unix:/tmp/s1,server,nowait -spice port=5900,disable-ticketing  -netdev tap,id=hostnet0,vhost=on,id=hostnet0,fds=5:15:25:35 5<>/dev/tap5 15<>/dev/tap5 25<>/dev/tap5 35<>/dev/tap5 -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=0e:49:5d:6e:f9:f5,mq=on,vectors=10,bus=pcie.0,addr=0x7 -global ICH9-LPC.disable_s3=0 -global ICH9-LPC.disable_s4=0

2.Inside guest, do s3 and resume

3.Inside guest, do s3 again

Actual results:
remains black screen

Expected results:
Can resume successfully after 2nd s3.

Additional info:
1.with pc-i440fx-rhel7.1.0, can not hit such issue.

2.From the seriel console, get nothing after 2nd s3: