Bug 843351 - [virtio-win][balloon]when balloon value was set to 01000/002000 in monitor the info balloon gave improper values
[virtio-win][balloon]when balloon value was set to 01000/002000 in monitor th...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Luiz Capitulino
Virtualization Bugs
Depends On:
  Show dependency treegraph
Reported: 2012-07-26 02:06 EDT by Min Deng
Modified: 2012-07-26 04:32 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-26 04:32:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Min Deng 2012-07-26 02:06:40 EDT
Description of problem:
  QE set balloon value to '01000' from monitor,as there was no any error message for it.QE take it as '1000'.if so,the info balloon should be 1000 but it was 882 or 890 (not 1000).If 'balloon 1000' directly,the feedback value was 1000.
  If we don't support 0xxxx or 00xxxx or 000xxxx... format we had better forbid it and give warning messages.Otherwise,please give correct values.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

1.Boot up guest - 
  /usr/libexec/qemu-kvm -cpu Penryn,+x2apic,family=0xf -smp 6 -m 4G -device virtio-balloon-pci,id=balloon0 -k en-us -usb -device usb-tablet,id=tablet0 -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -drive file=/home/win7-32.qcow2,format=qcow2,cache=none,if=none,werror=stop,rerror=stop,id=drive-disk0,media=disk -device ide-drive,drive=drive-disk0,id=disk0,bootindex=2 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device e1000,netdev=hostnet0,id=net0 -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=4,bus=pci.0 -chardev socket,server,host=,port=12345,id=channel0,nowait -device virtserialport,chardev=channel0,nr=1,id=serialport.1,name=org.linux-kvm.port0,bus=virtio-serial0.0 -rtc base=utc,clock=host,driftfix=slew -name winxp -spice port=5930,disable-ticketing -vga qxl -uuid 43c1afba-2d72-4c71-a984-51dac0e588ca -monitor stdio -drive file=/home/en_windows_7_ultimate_with_sp1_x86_dvd_619077.iso,format=raw,if=none,media=cdrom,id=drive-ide0-1-0 -device ide-drive,drive=drive-ide0-1-0,id=ide-drive0,bootindex=1 -drive file=/usr/share/virtio-win/virtio-win-1.5.3.iso,media=cdrom,cache=none,werror=stop,format=raw -fda /usr/share/virtio-win/virtio-win-1.5.3.vfd -chardev socket,id=111a,path=/tmp/monitor-732,server,nowait -mon chardev=111a,mode=readline -bios /usr/share/seabios/bios-pm.bin

2.From monitor,
(qemu) balloon 01000 
(qemu) info balloon
balloon: actual=890
Actual results:
Neither warning message nor proper value could be found.

Expected results:
If we consider 0xxxxx or 00xxx ... as legal value please provided correct value for balloon.if not,please show an warning message.

Additional info:
Another example for 000xxxxx
(qemu) balloon 0002000
(qemu) info balloon
balloon: actual=2868
(qemu) info balloon
balloon: actual=2704
(qemu) info balloon
balloon: actual=2552
(qemu) info balloon
balloon: actual=1024
(qemu) info balloon
balloon: actual=1024

When we set balloon value is 0002000 it was set to 1024 actually.So please double check the issue.Any issues please let me know.Thanks
Comment 1 Mike Cao 2012-07-26 02:10:23 EDT
dengmin ,we does not  support hmp officially,
Could you try to reproduce it w/  QMP ?
Comment 2 Min Deng 2012-07-26 03:31:03 EDT
The issue cannot be found in QMP it is special issue for hmp.
Comment 3 Ronen Hod 2012-07-26 04:32:08 EDT
HMP is not officially supported.

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