Bug 770896 - The value of QXL-VGA ram_size and vram_size fail to be changed
Summary: The value of QXL-VGA ram_size and vram_size fail to be changed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: David Blechter
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-30 03:01 UTC by Sibiao Luo
Modified: 2012-04-24 12:21 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-24 12:21:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Sibiao Luo 2011-12-30 03:01:19 UTC
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:

Comment 2 Alon Levy 2012-04-24 12:21:32 UTC
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


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