Bug 1066845 - Balloon stats do not work after s4
Summary: Balloon stats do not work after s4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Gal Hammer
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1131838
TreeView+ depends on / blocked
 
Reported: 2014-02-19 08:38 UTC by Mike Cao
Modified: 2015-11-23 03:37 UTC (History)
12 users (show)

Fixed In Version: virtio-win-prewhql-0.1-82
Doc Type: Bug Fix
Doc Text:
Cause: Balloon memory statistics does not work after resuming guest from hibernate (S4 state). Consequence: balloon service cannot update memory statistics after resuming from hibernate Fix: Rebuild virtio queues on resuming. Result: Now memory statistics can work properly after resuming Windows guest from hibernate.
Clone Of:
Environment:
Last Closed: 2015-03-05 05:33:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0289 0 normal SHIPPED_LIVE virtio-win bug fix and enhancement update 2015-03-05 10:32:54 UTC

Description Mike Cao 2014-02-19 08:38:13 UTC
Description of problem:


Version-Release number of selected component (if applicable):
win7-32 guest
qemu-kvm-rhev-1.5.3-48.el7.x86_64
seabios-1.7.2.2-10.el7.x86_64
3.10.0-86.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Start VM with CLI:
/usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2G -smp 4,cores=2,threads=1,sockets=2 -name bcao_win-7-32-netkvm -uuid `uuidgen` -rtc base=localtime,clock=host,driftfix=slew -drive file=win7-32.qcow2,if=none,media=disk,serial=aaabbbccc,werror=stop,rerror=stop,cache=none,format=qcow2,id=drive-disk0 -device ide-drive,physical_block_size=4096,bus=ide.0,unit=1,logical_block_size=512,drive=drive-disk0,id=disk0 -drive file=en_windows_7_ultimate_with_sp1_x86_dvd_u_677460.iso,if=none,media=cdrom,id=aa -device ide-drive,id=aa1,drive=aa,bootindex=1 -drive media=cdrom,if=none,id=bb -device ide-drive,id=bb1,drive=bb -netdev tap,vhost=on,id=netdev0 -device e1000,netdev=netdev0,id=nic1,mac=1a:46:11:4a:bc:7a -vnc :2 -monitor stdio -usb -device usb-tablet,id=tablet0 -global PIIX4_PM.disable_s3=0 -global PIIX_PM.disable_s4=0 -monitor unix:/tmp/tt,server,nowait -boot menu=on -device virtio-balloon-pci,id=balloon0 -qmp tcp:0:5888,server,nowait -global PIIX4_PM.disable_s4=0
2.install VirtIO balloon driver and blnsrv.exe
3.do s4 in the guest 
4.resume guest 
5.
{"QMP": {"version": {"qemu": {"micro": 3, "minor": 5, "major": 1}, "package": " (qemu-kvm-1.5.3-48.el7)"}, "capabilities": []}}
{"execute":"qmp_capabilities"}
{"return": {}}
{ "execute": "qom-set",
             "arguments": { "path": "/machine/peripheral/balloon0","property": "guest-stats-polling-interval", "value": 2 } }
{"return": {}}
{ "execute": "qom-get",
  "arguments": { "path": "/machine/peripheral/balloon0",
  "property": "guest-stats" } }


Actual results:
{"error": {"class": "GenericError", "desc": "guest hasn't updated any stats yet"}

Expected results:
it should return :
{"return": {"stats": {"stat-swap-out": 0, "stat-free-memory": 1731293184, "stat-minor-faults": 97, "stat-major-faults": 0,...}


Additional info:
reboot the guest will work fine

Comment 3 Gal Hammer 2014-05-08 11:26:25 UTC
I was unable to reproduce with virtio-win-prewhql-0.1-82. Can you please confirm? Thanks.

Comment 4 Mike Cao 2014-05-12 06:50:18 UTC
(In reply to Gal Hammer from comment #3)
> I was unable to reproduce with virtio-win-prewhql-0.1-82. Can you please
> confirm? Thanks.

I still can reproduce this issue on virtio-win-prewhql-0.1-82 Steps same as comment #0

Comment 5 Gal Hammer 2014-05-13 13:36:47 UTC
I was able to reproduce with a Windows 7 guest. A patch was posted.

Please note that it is still possible to see the "guest hasn't updated any stats yet" error if the query is send while Windows is still resuming and the driver is not loaded yet.

Comment 6 Mike Cao 2014-07-21 09:47:15 UTC
lijin,pls help to verify this issue ,thanks .

Comment 7 lijin 2014-07-28 04:16:58 UTC
Reproduced this issue on virtio-win-prewhql-82
Verified this issue on virtio-win-prewhql-87

steps same as comment #0

Actual Results:
on virtio-win-prewhql-82,actual results:
{"error": {"class": "GenericError", "desc": "guest hasn't updated any stats yet"}}

on virtio-win-prewhql-87,actual results:
{"return": {"stats": {"stat-swap-out": 0, "stat-free-memory": 1762824192, "stat-minor-faults": 12, "stat-major-faults": 131, "stat-total-memory": 2147074048, "stat-swap-in": 978}, "last-update": 1406281726}}

Based on above ,this issue has been fixed already.

Comment 11 errata-xmlrpc 2015-03-05 05:33:42 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/RHBA-2015-0289.html


Note You need to log in before you can comment on or make changes to this bug.