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 1170440

Summary: windows guest fail to resume from S3 (BSOD) under Q35 chipset
Product: Red Hat Enterprise Linux 7 Reporter: Sibiao Luo <sluo>
Component: qemu-kvm-rhevAssignee: Vadim Rozenfeld <vrozenfe>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: ailan, amit.shah, chayang, ghammer, hhuang, jinzhao, jsnow, juzhang, knoel, marcel, michen, pbonzini, pezhang, sluo, virt-maint, wquan, xfu
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-03-02 13:02:39 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: 1185721    
Bug Blocks: 1227278    
Attachments:
Description Flags
Screenshot-win7-64bit-S3-BSOD. none

Description Sibiao Luo 2014-12-04 04:59:28 UTC
Description of problem:
As subject, found this bug when replied bug 949900.
According to Bug 1111107 that Q35 is no longer "tech preview" in RHEL7.x and is simply now unsupported (it will only be in qemu-kvm-rhev). And checked with Amit in IRC that both (q35 and s3/s4) are techpreview, S3/S4 was enable by default under Q35 chipset which no need to sepcify "-global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0" in qemu-kvm command line.

Version-Release number of selected component (if applicable):
# uname -r && rpm -q qemu-kvm-rhev
3.10.0-211.el7.x86_64
qemu-kvm-rhev-2.1.2-14.el7.x86_64
guest info:
win7 64bit

How reproducible:
100%

Steps to Reproduce:
1.Launch a win7 KVM guest with "spice + qxl" under Q35 chipset.
2.Hit the 'Sleep' button to do S3 in guest.
3.input system_reset or press any keyboard to resume the VM.

Actual results:
after step 2, it can sleep successfully.
(qemu) info status 
VM status: paused (suspended)
after step 3, it fail to resume(guest will BSOD).

Expected results:
It should can resume from S3 successfully.

Additional info:
# /usr/libexec/qemu-kvm -S -M q35 -cpu SandyBridge -enable-kvm -m 4096 -smp 2,sockets=2,cores=1,threads=1 -no-kvm-pit-reinjection -name sluo-test -uuid ed09fa10-6ffe-4811-a42f-0294afcb5a42 -rtc base=localtime,clock=host,driftfix=slew -drive file=/home/win7-64-sp1-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop,serial=QEMU-DISK1 -device virtio-blk-pci,drive=drive-system-disk,id=system-disk,bus=pcie.0,addr=0x04,bootindex=1 -netdev tap,id=hostnet0,vhost=off,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=08:2e:5f:0a:0d:b1,bus=pcie.0,addr=0x5,bootindex=2 -balloon none -usb -device usb-tablet,id=input0 -serial unix:/tmp/ttyS0,server,nowait -qmp tcp:0:4444,server,nowait -k en-us -boot menu=on -spice disable-ticketing,port=5931 -vga qxl -monitor stdio

Comment 1 Sibiao Luo 2014-12-04 05:00:07 UTC
Created attachment 964444 [details]
Screenshot-win7-64bit-S3-BSOD.

Comment 2 Sibiao Luo 2014-12-04 05:08:14 UTC
I have configured the generating dump file in windows but it fail to generate it, so i only can provide the BSOD screenshot here.

append my win7 guest driver version:
virtio-win-prewhql-0.1-93
qxl-win-0.1-20

Best Regards,
sluo

Comment 3 Ronen Hod 2014-12-04 14:27:56 UTC
Deferring. S3 & Q35 are not included in 7.1.

Comment 6 Marcel Apfelbaum 2015-10-18 13:40:58 UTC
Hi,

This is a relatively old BZ.
Can you please verify if we still have this problem with the latest qemu / qxl ?

Thanks!
Marcel

Comment 7 Pei Zhang 2015-10-19 06:24:11 UTC
(In reply to Marcel Apfelbaum from comment #6)
> Hi,
> 
> This is a relatively old BZ.
> Can you please verify if we still have this problem with the latest qemu /
> qxl ?
> 
> Thanks!
> Marcel

I tested with the latest version until now and we still have this issue.

Versions:
Host:
Kernel: 3.10.0-325.el7.x86_64
qemu-kvm-rhev: qemu-kvm-rhev-2.3.0-31.el7.x86_64

Guest:
win7-64bit

Steps:
Same steps with Description.

Comment 9 Gal Hammer 2016-02-17 11:44:13 UTC
Vadim, can you please take a look at this? The screenshot says viostor.sys. Thanks.

Comment 10 Vadim Rozenfeld 2016-02-17 13:25:55 UTC
Can we please reproduce the problem with the latest driver and upload the relevant crash dump file?

Thanks,
Vadim.

Comment 11 Gal Hammer 2016-02-18 09:02:42 UTC
Adding bz#1185721, as I think it might be the root cause of the driver crash.

Comment 14 jingzhao 2016-02-23 08:34:44 UTC
(In reply to Vadim Rozenfeld from comment #10)
> Can we please reproduce the problem with the latest driver and upload the
> relevant crash dump file?
> 
> Thanks,
> Vadim.

Can reproduced the issue with latest version

kernel-3.10.0-350.el7.x86_64
qemu-kvm-rhev-2.3.0-31.el7_2.7.x86_64

The crash dump file didn't generate, following is the method for collecting the dump file

1. Right-click My Computer, and then click Properties.
2. Click the Advanced tab.
3. Under Startup and Recovery, click Settings.
4. Make sure that Kernel memory dump or Complete memory dump is selected under Writing Debugging Information.
5. You can change the location of the memory dump file to a different local partition if you do not have sufficient room on the partition where the operating system is installed.
6. In Registry Editor, locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
7. Right-click CrashControl, point to New, and then click DWORD Value.
8. Type NMICrashDump, and then press ENTER.
9. Right-click NMICrashDump, and then click Modify.
10. In the Value data box, type 1, and then click OK.
11. Restart the computer.

Comment 15 Gal Hammer 2016-02-25 15:53:04 UTC
The problem is the driver fails to find its virt queue after resuming from s3. This cause a crash when virtqueue_add_buf is called with NULL argument.

The solution to this problem should involves qemu and/or seabios.

Comment 16 Amnon Ilan 2016-03-02 13:02:39 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1185721#c5 .
A patch sent upstream resolve this issue.
Closing as duplicate

*** This bug has been marked as a duplicate of bug 1185721 ***