Bug 847939

Summary: should not allow set a negative and zero value for mem balloon
Product: Red Hat Enterprise Linux 5 Reporter: langfang <flang>
Component: kvmAssignee: Amit Shah <amit.shah>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 5.9CC: chayang, juzhang, mkenneth, qzhang, rhod, sluo, virt-maint, wdai, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 10:58:57 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:

Description langfang 2012-08-14 06:34:40 UTC
Description of problem:

ballooning value reset to original value after setting a negative number,this bug only reflect rhel5 host ,about rhel6 host ,can see https://bugzilla.redhat.com/show_bug.cgi?id=694373--->have fixed for rhel6 host

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


How reproducible:


Steps to Reproduce:
1.boot guest with balloon device
 /usr/libexec/qemu-kvm -m 4G -smp 4 -cpu qemu64,+sse2 -drive file=/home/rhel5.9-x86_64.qcow2,format=qcow2,media=disk,if=virtio,boot=on,werror=stop -net nic,model=virtio,macaddr=04:16:37:51:37:27,vlan=0 -net tap,sndbuf=0,vlan=0,script=/etc/qemu-ifup,downscript=no -uuid 7e8fabbb-ce86-4b2c-8df7-841b4d3901a4 -vnc :18 -boot c -usbdevice tablet -no-hpet -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio -balloon virtio -serial unix:/tmp/langfang,server,nowait

2.(qemu) info balloon
balloon: actual=4096
(qemu) balloon 2456
(qemu) info balloon
balloon: actual=2456
(qemu) balloon -23424
(qemu) info balloon
balloon: actual=4096
(qemu) balloon 0
(qemu) info balloon
balloon: actual=4096
(qemu) balloon 2100
(qemu) info balloon
balloon: actual=2100
(qemu) balloon 0
(qemu) info balloon
balloon: actual=2100
(qemu) balloon -2134
(qemu) info balloon
balloon: actual=4096
(qemu) info balloon
balloon: actual=4096


  
Actual results:
ballooning value reset to original value after setting a negative number

Expected results:
balloon value should keep the previous value

when input negative or zero value ,should have a tip like on rhel6 host:
(qemu) balloon 0
Parameter 'target' expects a size
(qemu) balloon -1
Parameter 'target' expects a size
(qemu) balloon -10000
Parameter 'target' expects a size


Additional info:

Comment 1 RHEL Program Management 2012-08-14 06:37:29 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 2 langfang 2012-08-14 06:59:55 UTC
addinfo:
Version-Release number of selected component (if applicable):

# uname -r
2.6.18-336.el5
# rpm -q kvm
kvm-83-259.el5
guest:
2.6.18-333.el5

Comment 3 Ronen Hod 2012-08-16 10:58:57 UTC
Closing as WONTFIX.
This bug does not cause any damage, and we prefer not to fix them in RHEL5.