Bug 1023246

Summary: Machine type pc-i440fx-rhel7.0.0 do not support S3/S4 of win8 guest
Product: Red Hat Enterprise Linux 7 Reporter: FuXiangChun <xfu>
Component: qemu-kvmAssignee: Marcel Apfelbaum <marcel>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, bcao, ghammer, hhuang, juzhang, marcel, michen, mst, rhod, virt-maint, xfu, yvugenfi
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 10:07:44 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    
Attachments:
Description Flags
q35 machine type
none
pc machine type none

Description FuXiangChun 2013-10-25 02:16:16 UTC
Description of problem:
only machine type q35 support S3/S4 for win8 guest. other machine type don't support in RHEL7.0.  I attached two snapshots. 

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-1.5.3-10.el7.x86_64
3.10.0-35.el7.x86_64
qxl version:
qxlwddm-0.2

How reproducible:
100%

Steps to Reproduce:
1.qemu-kvm command line
/usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 10G -smp 8,sockets=2,cores=4,threads=1 -usb -device usb-tablet,id=input0 -name sluo -uuid ec15da0a-e8a7-42f4-905a-78fed78fd8fd -rtc base=localtime,clock=host,driftfix=slew -device ahci,id=ahci0,addr=0x04 -drive file=/home/win8.1-64.qcow2,if=none,id=drive-sata-disk-0-0,format=qcow2 -device ide-drive,bus=ahci0.0,unit=0,drive=drive-sata-disk-0-0,id=sata-disk-0-0 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device rtl8139,netdev=netdev0,id=virtio-net-pci0,mac=e4:1f:13:eb:40:24,addr=0x5 -balloon virtio -vnc :1 -monitor stdio -boot menu=on -spice disable-ticketing,port=5931 -vga qxl  -global qxl-vga.revision=3 -qmp tcp:0:4444,server,nowait -usb -device usb-mouse,id=mouse -sandbox on  -drive file=/root/interface/virtio.qcow2,if=none,id=drive-sata-disk-0-1,format=qcow2 -device virtio-blk-pci,drive=drive-sata-disk-0-1,id=sata-disk-0-1 -drive file=/root/interface/scsi.qcow2,if=none,id=drive-scsi-disk,format=qcow2,aio=native -device virtio-scsi-pci,id=scsi0 -device scsi-hd,drive=drive-scsi-disk,id=data-disk -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1,server,nowait -mon chardev=qmp_id_qmpmonitor1,mode=control -drive file=qxl.iso,if=none,media=cdrom,format=raw,id=drive-ide1-0-2 -device ide-drive,drive=drive-ide1-0-2,id=ide1-0-2,bus=ide.0,unit=0

2.shutdown guest and restart guest with q35 machine type and the same command line as step1

3.

Actual results:
after step1
win8 guest can not do S3/S4(not support)

after step2
win8 guest can do S3/S4(support)

Expected results:
linux guest don't hit this issue.  I only tested win8 64/32 bit guest. not test other windows guest.

Additional info:

Comment 1 FuXiangChun 2013-10-25 02:20:31 UTC
Created attachment 815968 [details]
q35 machine type

Comment 2 FuXiangChun 2013-10-25 02:21:30 UTC
Created attachment 815969 [details]
pc machine type

Comment 4 Ronen Hod 2014-01-14 15:45:25 UTC
Probably a duplicate of one of the other Q35 S3/S4 bugs. It is not supported yet.

Comment 8 Mike Cao 2014-07-07 02:12:21 UTC
Pls retest it w/ CLI -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0

Comment 9 FuXiangChun 2014-07-29 07:47:00 UTC
Re-tested this issue with -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0. Before missing this option in cli.

result:
win8 guest support s3 & s4.  but guest show black screen when doing s3/s4(As s3/s4 have more bugs, It is existing bug 1043379).

Comment 10 Mike Cao 2014-07-29 10:07:44 UTC
close as not a bug