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 1066845

Summary: Balloon stats do not work after s4
Product: Red Hat Enterprise Linux 7 Reporter: Mike Cao <bcao>
Component: virtio-winAssignee: Gal Hammer <ghammer>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bcao, ghammer, hhuang, huding, juzhang, knoel, lijin, michen, rbalakri, sluo, virt-maint, vrozenfe
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 05:33:42 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: 1131838    

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