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 1185721

Summary: win7 guest (boot with q35) show dark screen after do S3
Product: Red Hat Enterprise Linux 7 Reporter: langfang <flang>
Component: seabiosAssignee: Marcel Apfelbaum <marcel>
Status: CLOSED ERRATA QA Contact: aihua liang <aliang>
Severity: medium Docs Contact:
Priority: low    
Version: 7.2CC: ailan, chayang, hhuang, juzhang, marcel, michen, qzhang, sluo, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: seabios-1.9.1-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 00:26:06 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: 1170440, 1227278    
Attachments:
Description Flags
Hibernation not support on Win7-sp1 guest none

Description langfang 2015-01-26 06:20:32 UTC
Description of problem:
win7 guest (boot with q35) show dark screen after S3 ,if boot with "-M pc ",do s3, not hit this problem

Version-Release number of selected component (if applicable):
Host:

# uname -r
3.10.0-224.el7.x86_64
# rpm -q qemu-kvm-rhev
qemu-kvm-rhev-2.1.2-21.el7.x86_64

Guest:
win7-sp1

How reproducible:

100%
Steps to Reproduce:
1.Boot guest with 
 -M q35.. -global ICH9-LPC.disable_s3=0 -global ICH9-LPC.disable_s4=0

2.In guest 
powercfg -h on-->powercfg -h on

3.Do 'sleep'


Actual results:
(qemu) info status
VM status: running

guest show dark screen

Expected results:

Guest do S3 successfully

Additional info:
1.S4 work well
2.MY CLI:
/usr/libexec/qemu-kvm -enable-kvm -M q35 -m 4G -smp 4 -uuid `uuidgen` -nodefaults -rtc base=utc -drive file=/root/win7-64-sp1-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,serial=QEMU-DISK1 -device ide-drive,drive=drive-system-disk,id=sytem-disk  -monitor stdio -boot menu=on,order=d -qmp tcp:0:4447,server,nowait  -device virtio-balloon-pci,bus=pcie.0,id=balloon0  -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pcie.0,addr=0x8  -chardev socket,id=channel0,path=/tmp/testfile2,server,nowait  -device virtserialport,chardev=channel0,name=org.linux-kvm.port.0,bus=virtio-serial0.0,id=port1  -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=00:10:20:2d:39:23,bus=pcie.0,addr=0x4,id=net0  -spice port=5830,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -global qxl-vga.revision=3 -global ICH9-LPC.disable_s3=0 -global ICH9-LPC.disable_s4=0

Comment 4 Gal Hammer 2016-02-25 09:36:21 UTC
Looks like a seabios bug. The bios is doesn't have a code which restores the ich9 pci device state after s3 state.

Comment 5 Marcel Apfelbaum 2016-03-01 10:15:55 UTC
A solution has been submitted upstream:
http://www.seabios.org/pipermail/seabios/2016-February/010543.html

Comment 6 Amnon Ilan 2016-03-02 13:02:39 UTC
*** Bug 1170440 has been marked as a duplicate of this bug. ***

Comment 7 Miroslav Rezanina 2016-04-06 06:18:50 UTC
Fix included in seabios-1.9.1-2.el7

Comment 9 aihua liang 2016-09-05 10:08:07 UTC
The verification is blocked,for win7-sp1 can't support hibernation.

Verified Version:
 kernel version:3.10.0-496.el7.x86_64
 qemu-kvm-rhev version:qemu-img-rhev-2.6.0-22.el7.x86_64
 seabios version:seabios-1.9.1-4.el7.x86_64
 guest iso:en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso

Verified Steps:
 1. Start Win7 guest using cmd:
/usr/libexec/qemu-kvm -name rhel7 \
-machine q35,accel=kvm,usb=off,vmport=off \
-cpu host \
-m 3072 \
-realtime mlock=off \
-smp 8,sockets=64,maxcpus=240 \
-uuid 1534fa42-4818-4493-9f67-eee5ba758385 \
-no-user-config -nodefaults \
-chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/test1,server,nowait \
-mon chardev=qmp_id_catch_monitor,id=monitor,mode=control \
-no-hpet \
-boot menu=on,splash-time=6000 \
-vga qxl \
-global qxl-vga.vram_size=67108864 -global qxl-vga.revision=3 \
-vnc 0:3 \
-spice ipv4,port=5000,disable-ticketing \
-enable-kvm \
-monitor stdio \
-global ICH9-LPC.disable_s3=0 \
-netdev tap,id=hostnet10 \
-device virtio-net-pci,netdev=hostnet10,id=net10,mac=50:54:00:49:b2:5f,disable-legacy=off,disable-modern=off \
-device virtio-scsi-pci,id=scsi0,disable-legacy=off,disable-modern=off \
-device ahci,id=ahci0 \
-drive file=/home/img/win7_scsi.qcow2,if=none,id=drive-ide-1,media=disk,format=qcow2,cache=none,aio=native \
-device scsi-hd,drive=drive-ide-1,id=scsi0-0,bus=scsi0.0,bootindex=1 \

 2. Run cmd:powercfg -h on


Actual Result:
 Guest do S3 failed with error mesg:
    Hibernation failed with following error:The request is not supported.
    System firmware doesn't support hibernation.

Expected Result:
 Guest can do S3 success.

Question:
 According to the google info, it's related to graphic driver. Is that right? Can you give me some advice, thanks.

Additional info:
  When do S3 on RHEL6.8-32bit, screen still show dark black(pc+s3).

Comment 10 aihua liang 2016-09-05 10:13:04 UTC
Created attachment 1197840 [details]
Hibernation not support on Win7-sp1 guest

Comment 11 aihua liang 2016-09-14 05:47:27 UTC
Has verified, it has been resolved on win7-sp1,so change its status to "Verified"

Verified Version:
  Kernel Version:3.10.0-500.el7.x86_64
  qemu-kvm-version:qemu-kvm-rhev-2.6.0-22.el7.x86_64
  OVMF Version:OVMF-20160608-3.git988715a.el7.noarch

Verified Steps:
1.Start guest with cmds:
/usr/libexec/qemu-kvm \
-enable-kvm \
-M q35 \
-m 4G \
-smp 4 \
-uuid `uuidgen` -nodefaults -rtc base=utc \
-drive file=/home/73test/script/seabios/img/win7-64-sp1.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,serial=QEMU-DISK1 \
-device ide-hd,drive=drive-system-disk,id=sytem-disk  \
-monitor stdio \
-boot menu=on,order=d \
-qmp tcp:0:4447,server,nowait  \
-device virtio-balloon-pci,bus=pcie.0,id=balloon0  \
-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pcie.0,addr=0x8 \
-chardev socket,id=channel0,path=/tmp/testfile2,server,nowait \
-device virtserialport,chardev=channel0,name=org.linux-kvm.port.0,bus=virtio-serial0.0,id=port1  \
-netdev tap,id=hostnet0,script=/etc/qemu-ifup \
-device virtio-net-pci,netdev=hostnet0,mac=00:10:20:2d:39:23,bus=pcie.0,addr=0x4,id=net0  \
-spice port=5000,disable-ticketing \
-vga qxl \
-vnc 0:2 \
-global ICH9-LPC.disable_s3=0 \
-drive file=/home/kvm_autotest_root/iso/windows/virtio-win-1.8.0-4.iso,if=none,cache=none,snapshot=off,aio=native,media=cdrom,id=cdrom2 \
-device ide-cd,drive=cdrom2,id=ide-cd3,bus=ide.0 \
-drive file=/home/kvm_autotest_root/iso/windows/winutils.iso,if=none,cache=none,snapshot=off,aio=native,media=cdrom,id=cdrom3 \
-device ide-cd,drive=cdrom3,id=ide-cd4,bus=ide.1 \

2.Install QXL driver for win7.
3.Set power policy on win7 guest---sleep after 1 minute.
4.Wait until guest sleep,then check vm status:(qemu)info status--suspend
5.Wake up vm, check its status:(qemu)info status ---running

Comment 13 errata-xmlrpc 2016-11-04 00:26:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2207.html