Hide Forgot
Description of problem: The value of command line parameter ram_size or vram_size fail to be changed, which are in the normal range both of them. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm 2.6.32-221.el6.x86_64 qemu-kvm-0.12.1.2-2.213.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. boot the guest with the value of command line parameter ram_size and vram_size which are in the normal range both of them. eg: # /usr/libexec/qemu-kvm -M rhel6.2.0 -enable-kvm -m 2048 -smp 2,sockets=1,cores=2,threads=1 -name rhel6.2-64 -uuid f1606ee0-2c5e-4dc5-9de1-455e5e451d1c -boot menu=on -drive file=/root/rhel6.2-64.qcow2,if=none,id=drive-ide-0-0,media=disk,format=qcow2,cache=none,werror=stop,rerror=stop -device ide-drive,drive=drive-ide-0-0,id=ide0-0-0 -netdev tap,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=22:1a:4a:42:1b:37 -usb -device usb-tablet,id=input1 -monitor stdio -balloon none -spice disable-ticketing,port=5912 -vga qxl -global qxl-vga.ram_size=43433355 2. check the value of ram_size or vram_size with info qtree in the qemu monitor. Actual results: ... dev: qxl-vga, id "" dev-prop: ram_size = 67108864 ... Expected results: the value of ram_size or vram_size can be changed successfully. Additional info:
This is by design - the values are set to the smallest next power of two, so if you give a value between 2^n+1..2^n you get 2^n, in this case 2**25<43433355<=2**26 => 67108864 Alon