Bug 954173

Summary: rhel guest show dark screen after S3 when guest on runlevel 3
Product: Red Hat Enterprise Linux 7 Reporter: langfang <flang>
Component: kernelAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, flang, gsun, hhuang, huding, juzhang, michen, qzhang, rhod, sluo, virt-maint, xfu
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-18 09:43:11 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
dmesg info in guest none

Description langfang 2013-04-21 14:57:57 UTC
Description of problem:
rhel guest(on runlevel 3)-->do S3 -->resume from S3--->show dark screen,

Version-Release number of selected component (if applicable):
Host:
# uname -r
3.9.0-0.rc6.51.el7.x86_64
# rpm -q qemu-kvm
qemu-kvm-1.4.0-2.el7.x86_6
# rpm -q seabios
seabios-1.7.1-4.el7.x86_64

Guest:rhel7-64

3.7.0-0.36.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot guest
/usr/libexec/qemu-kvm  -cpu Penryn -enable-kvm -m 2G -smp 2,sockets=2,cores=1,threads=1 -name rhel7 -uuid `uuidgen` -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2 -device virtio-blk-pci,drive=drive-system-disk,id=system-disk,bootindex=1 -netdev tap,id=hostnet1,script=/etc/qemu-ifup -device e1000,netdev=hostnet1,id=net1,mac=34:ef:18:6e:2a:31,addr=0x4 -spice port=5830,disable-ticketing -vga qxl -qmp tcp:0:4445,server,nowait -monitor stdio -usb -device usb-tablet -serial unix:/tmp/tty0,server,nowait

2.In guest do S3
#init 3
#pm-suspend

3.Resume from S3
(qemu) info status
VM status: paused (suspended)
(qemu) system_wakeup
(qemu) info status
VM status: running

Actual results:

Guest show dark screen.

Expected results:

Guest work well

Additional info:
1)If guest on runlevel 5 ,after resume ,guest work well 
2)Rhel6.4 guest run on rhel7 host have same problem
3)Guest demsg info see attachment
4)Test on rhel6 host ,not see the problem

Comment 1 langfang 2013-04-21 15:01:53 UTC
Created attachment 738274 [details]
dmesg info in guest

Comment 3 Ronen Hod 2013-04-22 14:44:58 UTC
langfang,

Is the guest reachable through the network (ping, ssh)?

Thanks.

Comment 4 langfang 2013-04-23 02:27:50 UTC
(In reply to comment #3)
> langfang,
> 
> Is the guest reachable through the network (ping, ssh)?
> 
> Thanks.

Hi Ronen


    After guest resume from S3.The network is OK.Can ping and ssh.

[root@localhost ~]# ping 10.66.4.195
ping 10.66.4.195
PING 10.66.4.195 (10.66.4.195) 56(84) bytes of data.
64 bytes from 10.66.4.195: icmp_seq=1 ttl=61 time=1.12 ms
64 bytes from 10.66.4.195: icmp_seq=2 ttl=61 time=0.298 ms
64 bytes from 10.66.4.195: icmp_seq=3 ttl=61 time=0.272 ms
64 bytes from 10.66.4.195: icmp_seq=4 ttl=61 time=0.290 ms



best regards 
fang lang

Comment 5 xhan 2013-05-06 10:43:29 UTC
If the command line is with "-vga std", in init 5 mode, guest could not be waked up. 

host:
3.9.0-0.rc8.54.el7.x86_64
qemu-kvm:
qemu-kvm-1.4.0-3.el7.x86_64

Comment 6 Amit Shah 2013-11-25 11:46:31 UTC
Please try using latest packages

Comment 7 langfang 2013-11-26 04:43:46 UTC
(In reply to Amit Shah from comment #6)
> Please try using latest packages

Tried on latest version

Host:
# uname -r
3.10.0-55.el7.x86_64
# rpm -q qemu-kvm
qemu-kvm-1.5.3-19.el7.x86_64

Guest:RHEL 7 
3.10.0-40.el7.x86_64


Steps
1)Boot guest
2)In guest do s3
#init 3
#pm-suspend

3)Press keyboard to resume from s3

Results:
After step 2

(qemu) info status
VM status: paused (suspended)
(qemu) 

After step 3

guest resume

(qemu) info status
VM status: running

Comment 8 Amit Shah 2013-11-26 07:19:48 UTC
So everything works fine with new packages?  Does the guest display come up properly?

Comment 9 langfang 2013-11-28 02:59:56 UTC
(In reply to Amit Shah from comment #8)
> So everything works fine with new packages?  Does the guest display come up
> properly?

YES

Hi Amit
    A question need your confirmation . while guest in S3,the status is " paused (suspended)",the status is  normal?
   EG:step2 results:
   (qemu) info status
    VM status: paused (suspended)


    Test this bug again, after resume guest(use press keyboard to wakeup from S3)-->guest screen will prinit as follow info:

...
localhost login: [   90.274292] PM: Syncing filesystems ... done.
[   90.276394] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   90.278246] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   90.280040] Suspending console(s) (use no_console_suspend to debug)
[   90.318022] PM: suspend of devices complete after 37.388 msecs
[   90.318080] PM: late suspend of devices complete after 0.055 msecs
[   90.318544] PM: noirq suspend of devices complete after 0.463 msecs
[   90.318547] ACPI: Preparing to enter system sleep state S3
[   90.318571] PM: Saving platform NVS memory
[   90.318571] Disabling non-boot CPUs ...
[   90.318679] Unregister pv shared memory for cpu 1
[   90.320178] smpboot: CPU 1 is now offline
[   90.321170] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   90.321170] ACPI: Low-level resume complete
[   90.321170] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   90.321170] PM: Restoring platform NVS memory
[   90.321170] Enabling non-boot CPUs ...
[   90.321170] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   90.321170] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   90.352087] KVM setup async PF for cpu 1
[   90.352091] kvm-stealtime: cpu 1, msr 7fd0df80
[   90.352207] CPU1 is up
[   90.352318] ACPI: Waking up from system sleep state S3
[   90.358165] PM: noirq resume of devices complete after 5.796 msecs
[   90.358299] PM: early resume of devices complete after 0.037 msecs
[   90.358352] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   90.359314] usb usb1: root hub lost power or was reset
[   90.512840] ata2.00: configured for MWDMA2
[   90.664084] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   90.802532] PM: resume of devices complete after 444.230 msecs
[   90.817858] Restarting tasks ... done.
[   93.442513] IPv6: ADDRCONF(NETDEV_UP): ens4: link is not ready
[   95.447597] e1000: ens4 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[   95.448792] IPv6: ADDRCONF(NETDEV_CHANGE): ens4: link becomes ready
[  133.015260] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.

Comment 10 Amit Shah 2013-11-28 09:07:36 UTC
(In reply to langfang from comment #9)
> (In reply to Amit Shah from comment #8)
> > So everything works fine with new packages?  Does the guest display come up
> > properly?
> 
> YES

Great, so this bug doesn't exist anymore.

> Hi Amit
>     A question need your confirmation . while guest in S3,the status is "
> paused (suspended)",the status is  normal?
>    EG:step2 results:
>    (qemu) info status
>     VM status: paused (suspended)

Yes, the VM is in suspend state (S3), and that's what this status shows.

Thanks for testing!

Comment 11 langfang 2013-12-06 10:47:05 UTC
Hit this problem again for today test .So i repoen this bug.

Version:

# uname -r
3.10.0-57.el7.x86_64
qemu-kvm-rhev-1.5.3-20.el7.x86_64

Guest:

3.10.0-55.el7.x86_64

1.Boot guest on runlevel 3

2.In guest
#pm-suspend
(qemu) info status
VM status: paused (suspended)

3.Wake up guest
(qemu)system_wakeup

Results:
show dark screenm,if restart guest "(qemu)system_reset ",guest work well

LOG:

[  159.954291] PM: Syncing filesystems ... done.
[  159.957534] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  159.962384] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  159.966770] Suspending console(s) (use no_console_suspend to debug)
[  159.992521] PM: suspend of devices complete after 23.064 msecs
[  159.992737] PM: late suspend of devices complete after 0.212 msecs
[  159.994367] PM: noirq suspend of devices complete after 1.627 msecs
[  159.994790] ACPI: Preparing to enter system sleep state S3
[  159.994972] PM: Saving platform NVS memory
[  159.994974] Disabling non-boot CPUs ...
[  159.995197] Unregister pv shared memory for cpu 1
[  159.997852] smpboot: CPU 1 is now offline
[  159.998646] Unregister pv shared memory for cpu 2
[  160.001132] smpboot: CPU 2 is now offline
[  160.001480] Unregister pv shared memory for cpu 3
[  160.002117] Broke affinity for irq 42
[  160.003542] smpboot: CPU 3 is now offline
[  160.005052] kvm-clock: cpu 0, msr 1:4ff86001, primary cpu clock, resume
[  160.005052] ACPI: Low-level resume complete
[  160.005052] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[  160.005052] PM: Restoring platform NVS memory
[  160.005052] Enabling non-boot CPUs ...
[  160.005052] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  160.005052] kvm-clock: cpu 1, msr 1:4ff86041, secondary cpu clock
[  160.019898] KVM setup async PF for cpu 1
[  160.019907] kvm-stealtime: cpu 1, msr 14fc4df80
[  160.020247] CPU1 is up
[  160.020331] smpboot: Booting Node 0 Processor 2 APIC 0x2
[  160.020258] kvm-clock: cpu 2, msr 1:4ff86081, secondary cpu clock
[  160.034690] KVM setup async PF for cpu 2
[  160.034699] kvm-stealtime: cpu 2, msr 14fc8df80
[  160.034880] CPU2 is up
[  160.034936] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  160.034887] kvm-clock: cpu 3, msr 1:4ff860c1, secondary cpu clock
[  160.049161] KVM setup async PF for cpu 3
[  160.049171] kvm-stealtime: cpu 3, msr 14fccdf80
[  160.049353] CPU3 is up
[  160.053394] ACPI: Waking up from system sleep state S3
[  160.077704] PM: noirq resume of devices complete after 23.978 msecs
[  160.077960] PM: early resume of devices complete after 0.110 msecs
[  160.080524] usb usb1: root hub lost power or was reset
[  160.390219] ata3: SATA link down (SStatus 0 SControl 300)
[  160.391201] ata1: SATA link down (SStatus 0 SControl 300)
[  160.391459] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  160.391810] ata2.00: configured for UDMA/100
[  160.392201] ata4: SATA link down (SStatus 0 SControl 300)
[  160.392444] ata5: SATA link down (SStatus 0 SControl 300)
[  160.393207] ata6: SATA link down (SStatus 0 SControl 300)
[  160.402251] PM: resume of devices complete after 324.285 msecs
[  160.517647] Restarting tasks ... done.
[  160.850011] IPv6: ADDRCONF(NETDEV_UP): ens8: link is not ready
[  162.847636] e1000: ens8 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[  162.854184] IPv6: ADDRCONF(NETDEV_CHANGE): ens8: link becomes ready


MY CLI:

/usr/libexec/qemu-kvm -M q35 -m 4G -smp 4,sockets=1,cores=4,threads=1,maxcpus=8  -device piix3-usb-uhci,id=usb -name rhel7  -uuid `uuidgen` -device virtio-balloon-pci,id=balloon0  -spice port=5900,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864  -global qxl-vga.revision=3 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0   -monitor stdio   -netdev tap,id=hostnet0,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -device e1000,netdev=hostnet0,id=virtio-netpci0,mac=24:22:12:36:1a:11,addr=0x8  -drive file=/home/RHEL-Server-7.0-64.qcow2,if=none,media=disk,format=qcow2,rerror=stop,werror=stop,aio=native,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,addr=0x9,drive=drive-virtio-disk0,id=disk0  -qmp tcp:0:4444,server,nowait -serial unix:/tmp/tty0,server,nowait -drive file=/root/RHEL-7.0-20131127.1-Server-x86_64-boot.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -boot menu=on,order=cnd

Addtional info:If change "-M pc-i440fx-rhel7.0.0",same problem

Comment 12 Amit Shah 2014-01-07 08:32:33 UTC
What happens if you try the same with GUI in the guest?

Also, what happens if you use cirrus instead of qxl?

Comment 13 langfang 2014-03-07 06:19:06 UTC
(In reply to Amit Shah from comment #12)
> What happens if you try the same with GUI in the guest?
> 
> Also, what happens if you use cirrus instead of qxl?

Hi,amit
   Sorry i missed this needinfo.

test on latest version:
# uname -r
3.10.0-99.el7.x86_64
# rpm -q qemu-kvm-rhev
qemu-kvm-rhev-1.5.3-50.el7.x86_64

Guest:
3.10.0-99.el7.x86_64

Steps:
1.BOOt guest with "-vga cirrus" and guest with GUI
 /usr/libexec/qemu-kvm -M pc-i440fx-rhel7.0.0 -cpu SandyBridge -enable-kvm -m 2048 -smp 4,sockets=2,cores=2,threads=1 -no-kvm-pit-reinjection -usb -device usb-tablet,id=input0 -name RHEL7.0 -uuid bf76b557-17a7-4fc8-aa14-1b1890bd6937 -rtc base=localtime,clock=host,driftfix=slew  -drive if=none,file=/home/rhel7base.raw,format=raw,id=drive-sata0-0-0 -device ide-drive,drive=drive-sata0-0-0,id=sata0-0-0 -spice port=5900,disable-ticketing,ipv6 -global qxl-vga.vram_size=67108864 -vga cirrus -netdev tap,id=hostdev0,vhost=on,sndbuf=1048576,script=/etc/qemu-ifup,ifname=IFNAME,queues=4 -device virtio-net-pci,netdev=hostdev0,vectors=10,mq=on,mac=00:1a:4a:42:0b:00,id=vnet0,status=on -device virtio-balloon-pci,bus=pci.0,id=balloon0 -monitor stdio -global PIIX4_PM.disable_s3=0   -global PIIX4_PM.disable_s4=0  -serial unix:/tmp/tty0,server,nowait

2,In guest,do S3
#pm-suspend

Resuts:
show dark screen 

#dmesg 
....
[   46.635177] PM: suspend of devices complete after 3.132 msecs
[   46.635215] PM: late suspend of devices complete after 0.037 msecs
[   46.635863] PM: noirq suspend of devices complete after 0.646 msecs
[   46.635871] ACPI: Preparing to enter system sleep state S3
[   46.635896] PM: Saving platform NVS memory
[   46.635896] Disabling non-boot CPUs ...
[   46.635964] Unregister pv shared memory for cpu 1
[   46.645576] smpboot: CPU 1 is now offline
[   46.645735] Unregister pv shared memory for cpu 2
[   46.652400] smpboot: CPU 2 is now offline
[   46.652588] Unregister pv shared memory for cpu 3
[   46.658493] Broke affinity for irq 15
[   46.659520] smpboot: CPU 3 is now offline
[   46.660514] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   46.660514] ACPI: Low-level resume complete
[   46.660514] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   46.660514] PM: Restoring platform NVS memory
[   46.661976] Enabling non-boot CPUs ...
[   46.662029] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   46.661979] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   46.675489] KVM setup async PF for cpu 1
[   46.675494] kvm-stealtime: cpu 1, msr 7fc8df80
[   46.675604] CPU1 is up
[   46.675628] smpboot: Booting Node 0 Processor 2 APIC 0x2
[   46.675605] kvm-clock: cpu 2, msr 0:7ff87081, secondary cpu clock
[   46.707026] KVM setup async PF for cpu 2
[   46.707030] kvm-stealtime: cpu 2, msr 7fd0df80
[   46.707121] CPU2 is up
[   46.707150] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   46.707122] kvm-clock: cpu 3, msr 0:7ff870c1, secondary cpu clock
[   46.720567] KVM setup async PF for cpu 3
[   46.720571] kvm-stealtime: cpu 3, msr 7fd8df80
[   46.720641] CPU3 is up
[   46.720852] ACPI: Waking up from system sleep state S3
[   46.724513] PM: noirq resume of devices complete after 3.607 msecs
[   46.724613] PM: early resume of devices complete after 0.049 msecs
[   46.724649] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   46.727168] usb usb1: root hub lost power or was reset
[   46.878375] ata2.01: NODEV after polling detection
[   46.879188] ata2.00: configured for MWDMA2
[   46.879260] sd 1:0:0:0: [sda] Starting disk
[   47.042050] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   47.179711] PM: resume of devices complete after 455.095 msecs
[   47.179780] Restarting tasks ... done.

Comment 15 Gerd Hoffmann 2014-06-17 10:58:54 UTC
Guest bug, reassigning.

Could you please clarify which vga cards are affected?

Expected result with rhel7 ga as guest:

qxl    -> S3 works
cirrus -> S3 fails (bug #1043379)
stdvga -> S3 fails (bug #1043379 too)

With "fails" as in "dark screen but guest is fine otherwise".
Bug #1043379 will be fixed by the drm rebase in 7.1.

Comment 16 juzhang 2014-06-18 02:00:12 UTC
(In reply to Gerd Hoffmann from comment #15)
> Guest bug, reassigning.
> 
> Could you please clarify which vga cards are affected?
> 
> Expected result with rhel7 ga as guest:
> 
> qxl    -> S3 works
> cirrus -> S3 fails (bug #1043379)
> stdvga -> S3 fails (bug #1043379 too)
> 
> With "fails" as in "dark screen but guest is fine otherwise".
> Bug #1043379 will be fixed by the drm rebase in 7.1.

Hi Huding,

Can you have a try and update the testing in the bz?

Best Regards,
Junyi

Comment 17 huiqingding 2014-06-18 08:14:35 UTC
(In reply to Gerd Hoffmann from comment #15)
> Guest bug, reassigning.
> 
> Could you please clarify which vga cards are affected?
> 
> Expected result with rhel7 ga as guest:
> 
> qxl    -> S3 works
> cirrus -> S3 fails (bug #1043379)
> stdvga -> S3 fails (bug #1043379 too)
> 
> With "fails" as in "dark screen but guest is fine otherwise".
> Bug #1043379 will be fixed by the drm rebase in 7.1.

I test the following version:
Host:
qemu-kvm-1.5.3-63.el7.x86_64
kernel-3.10.0-128.el7.x86_64
Guest:
RHEL7.0 GA: kernel-3.10.0-123.el7.x86_64

The test results are same as the above expected result:
qxl    -> S3 works
cirrus -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)
std    -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)

Steps to test:
1. boot a RHEL7.0 GA guest
# /usr/libexec/qemu-kvm  -cpu SandyBridge -enable-kvm -m 2G -smp 2,sockets=2,cores=1,threads=1 -name rhel7 -uuid `uuidgen` -drive file=/home/rhel7-ga.qcow2,if=none,id=drive-system-disk,format=qcow2 -device virtio-blk-pci,drive=drive-system-disk,id=system-disk,bootindex=1 -net none -spice port=5830,disable-ticketing -vga std -qmp tcp:0:4445,server,nowait -monitor stdio -usb -device usb-tablet -serial unix:/tmp/tty0,server,nowait -global PIIX4_PM.disable_s3=0   -global PIIX4_PM.disable_s4=0
2. do S3 inside guest
# pm-suspend

Actual result:
qxl    -> S3 works
cirrus -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)
std    -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)

Additional info:
the dmseg info of cirrus, like the following:
# dmesg
[   23.246766] fuse init (API version 7.22)
[   23.253486] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[   23.260231] SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts
[   23.490546] Bluetooth: Core ver 2.16
[   23.490607] NET: Registered protocol family 31
[   23.490608] Bluetooth: HCI device and connection manager initialized
[   23.490615] Bluetooth: HCI socket layer initialized
[   23.490617] Bluetooth: L2CAP socket layer initialized
[   23.490622] Bluetooth: SCO socket layer initialized
[   23.493934] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   23.493936] Bluetooth: BNEP filters: protocol multicast
[   23.493942] Bluetooth: BNEP socket layer initialized
[   32.543472] PM: Syncing filesystems ... done.
[   32.896455] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   32.897622] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   32.898760] Suspending console(s) (use no_console_suspend to debug)
[   32.958616] PM: suspend of devices complete after 59.811 msecs
[   32.958679] PM: late suspend of devices complete after 0.061 msecs
[   32.959198] PM: noirq suspend of devices complete after 0.516 msecs
[   32.959208] ACPI: Preparing to enter system sleep state S3
[   32.959231] PM: Saving platform NVS memory
[   32.959232] Disabling non-boot CPUs ...
[   32.959239] Unregister pv shared memory for cpu 1
[   32.963245] smpboot: CPU 1 is now offline
[   32.964239] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   32.964239] ACPI: Low-level resume complete
[   32.964239] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   32.964239] PM: Restoring platform NVS memory
[   32.964239] Enabling non-boot CPUs ...
[   32.964239] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   32.964239] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   32.994785] KVM setup async PF for cpu 1
[   32.994788] kvm-stealtime: cpu 1, msr 7fd0dfc0
[   32.994853] CPU1 is up
[   32.994918] ACPI: Waking up from system sleep state S3
[   32.997228] PM: noirq resume of devices complete after 2.267 msecs
[   32.997288] PM: early resume of devices complete after 0.023 msecs
[   32.997333] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   32.998408] usb usb1: root hub lost power or was reset
[   32.998429] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[   32.998443] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[   33.150368] ata2.01: NODEV after polling detection
[   33.150864] ata2.00: configured for MWDMA2
[   33.314023] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   33.450685] PM: resume of devices complete after 453.395 msecs
[   33.450729] Restarting tasks ... done.

the dmseg info of std, like the following:
# dmesg
[   35.264499] PM: Syncing filesystems ... done.
[   35.265531] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   35.266695] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   35.267845] Suspending console(s) (use no_console_suspend to debug)
[   35.328140] PM: suspend of devices complete after 60.247 msecs
[   35.328186] PM: late suspend of devices complete after 0.045 msecs
[   35.328710] PM: noirq suspend of devices complete after 0.522 msecs
[   35.328715] ACPI: Preparing to enter system sleep state S3
[   35.328736] PM: Saving platform NVS memory
[   35.328737] Disabling non-boot CPUs ...
[   35.328744] Unregister pv shared memory for cpu 1
[   35.334262] Broke affinity for irq 1
[   35.334339] Broke affinity for irq 11
[   35.334359] Broke affinity for irq 12
[   35.334398] Broke affinity for irq 15
[   35.335419] smpboot: CPU 1 is now offline
[   35.336413] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   35.336413] ACPI: Low-level resume complete
[   35.336413] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   35.336413] PM: Restoring platform NVS memory
[   35.336413] Enabling non-boot CPUs ...
[   35.336413] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   35.336413] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   35.366954] KVM setup async PF for cpu 1
[   35.366957] kvm-stealtime: cpu 1, msr 7fd0dfc0
[   35.367035] CPU1 is up
[   35.367128] ACPI: Waking up from system sleep state S3
[   35.369391] PM: noirq resume of devices complete after 2.220 msecs
[   35.369468] PM: early resume of devices complete after 0.041 msecs
[   35.369539] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   35.370207] usb usb1: root hub lost power or was reset
[   35.371074] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[   35.371089] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[   35.522298] ata2.01: NODEV after polling detection
[   35.522843] ata2.00: configured for MWDMA2
[   35.685091] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   35.822046] PM: resume of devices complete after 452.576 msecs
[   35.822102] Restarting tasks ... done.
[   35.264499] PM: Syncing filesystems ... done.
[   35.265531] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   35.266695] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   35.267845] Suspending console(s) (use no_console_suspend to debug)
[   35.328140] PM: suspend of devices complete after 60.247 msecs
[   35.328186] PM: late suspend of devices complete after 0.045 msecs
[   35.328710] PM: noirq suspend of devices complete after 0.522 msecs
[   35.328715] ACPI: Preparing to enter system sleep state S3
[   35.328736] PM: Saving platform NVS memory
[   35.328737] Disabling non-boot CPUs ...
[   35.328744] Unregister pv shared memory for cpu 1
[   35.334262] Broke affinity for irq 1
[   35.334339] Broke affinity for irq 11
[   35.334359] Broke affinity for irq 12
[   35.334398] Broke affinity for irq 15
[   35.335419] smpboot: CPU 1 is now offline
[   35.336413] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   35.336413] ACPI: Low-level resume complete
[   35.336413] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   35.336413] PM: Restoring platform NVS memory
[   35.336413] Enabling non-boot CPUs ...
[   35.336413] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   35.336413] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   35.366954] KVM setup async PF for cpu 1
[   35.366957] kvm-stealtime: cpu 1, msr 7fd0dfc0
[   35.367035] CPU1 is up
[   35.367128] ACPI: Waking up from system sleep state S3
[   35.369391] PM: noirq resume of devices complete after 2.220 msecs
[   35.369468] PM: early resume of devices complete after 0.041 msecs
[   35.369539] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   35.370207] usb usb1: root hub lost power or was reset
[   35.371074] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[   35.371089] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[   35.522298] ata2.01: NODEV after polling detection
[   35.522843] ata2.00: configured for MWDMA2
[   35.685091] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   35.822046] PM: resume of devices complete after 452.576 msecs
[   35.822102] Restarting tasks ... done.

Comment 18 huiqingding 2014-06-18 08:19:34 UTC
(In reply to huiqingding from comment #17)
> (In reply to Gerd Hoffmann from comment #15)

> the dmseg info of std, like the following:
Correction:
the dmesg info of std is copied twice, it should be  
[   35.264499] PM: Syncing filesystems ... done.
[   35.265531] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   35.266695] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   35.267845] Suspending console(s) (use no_console_suspend to debug)
[   35.328140] PM: suspend of devices complete after 60.247 msecs
[   35.328186] PM: late suspend of devices complete after 0.045 msecs
[   35.328710] PM: noirq suspend of devices complete after 0.522 msecs
[   35.328715] ACPI: Preparing to enter system sleep state S3
[   35.328736] PM: Saving platform NVS memory
[   35.328737] Disabling non-boot CPUs ...
[   35.328744] Unregister pv shared memory for cpu 1
[   35.334262] Broke affinity for irq 1
[   35.334339] Broke affinity for irq 11
[   35.334359] Broke affinity for irq 12
[   35.334398] Broke affinity for irq 15
[   35.335419] smpboot: CPU 1 is now offline
[   35.336413] kvm-clock: cpu 0, msr 0:7ff87001, primary cpu clock, resume
[   35.336413] ACPI: Low-level resume complete
[   35.336413] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20130517/hwxface-571)
[   35.336413] PM: Restoring platform NVS memory
[   35.336413] Enabling non-boot CPUs ...
[   35.336413] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   35.336413] kvm-clock: cpu 1, msr 0:7ff87041, secondary cpu clock
[   35.366954] KVM setup async PF for cpu 1
[   35.366957] kvm-stealtime: cpu 1, msr 7fd0dfc0
[   35.367035] CPU1 is up
[   35.367128] ACPI: Waking up from system sleep state S3
[   35.369391] PM: noirq resume of devices complete after 2.220 msecs
[   35.369468] PM: early resume of devices complete after 0.041 msecs
[   35.369539] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[   35.370207] usb usb1: root hub lost power or was reset
[   35.371074] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[   35.371089] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[   35.522298] ata2.01: NODEV after polling detection
[   35.522843] ata2.00: configured for MWDMA2
[   35.685091] usb 1-1: reset full-speed USB device number 2 using uhci_hcd
[   35.822046] PM: resume of devices complete after 452.576 msecs
[   35.822102] Restarting tasks ... done.

Comment 19 Gerd Hoffmann 2014-06-18 09:43:11 UTC
> The test results are same as the above expected result:
> qxl    -> S3 works
> cirrus -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)
> std    -> S3 fails (bug #1043379, dark screen but guest is fine otherwise)

Good.  So no extra care needed, I'll make it a 1043379 duplicate then.

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