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
I was unable to reproduce with virtio-win-prewhql-0.1-82. Can you please confirm? Thanks.
(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
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.
lijin,pls help to verify this issue ,thanks .
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.
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