Bug 770898

Summary: The parameters of QXL-VGA ram_size and vram_size fail to work together
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: David Blechter <dblechte>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, alevy, bcao, bsarathy, chayang, desktop-qa-list, juzhang, michen, mkenneth, qzhang, rhod, shu, virt-maint, wdai
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-25 04:38:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sibiao Luo 2011-12-30 03:44:14 UTC
Description of problem:
The parameters of ram_size and vram_size fail to work together, they fail to be used at the same time and the guest fail to boot successfully.

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 a guest with the parameters ram_size and vram_size at the same time.
eg: ...-spice disable-ticketing,port=5912 -vga qxl -global qxl-vga.ram_size=55555555,qxl-vga.vram_size=44444444
  
Actual results:
The guest fail to boot successfully.

Expected results:
The parameters of ram_size and vram_size can work together successfully.

Additional info:

Comment 2 juzhang 2011-12-30 04:47:44 UTC
*** Bug 770900 has been marked as a duplicate of this bug. ***

Comment 3 Alon Levy 2012-04-24 12:18:33 UTC
I cannot reproduce, works for me. Using qemu-kvm from git, i.e. version qemu-kvm-0.12.1.2-2.283.el6, command line:

qemu-system-x86_64 -chardev stdio,id=muxstdio,mux=on -mon chardev=muxstdio,mode=readline -vga qxl -drive file=/images/win7_squashed_earth.img,cache=unsafe,if=ide,readonly=off -enable-kvm -L /home/alon/spice/rhel6/share/qemu -m 2048 -cpu host -spice disable-ticketing,port=10000 -snapshot -no-shutdown -smp 2 -global qxl-vga.debug=1 -global qxl-vga.ram_size=55555555 -global qxl-vga.vram_size=44444444 -usb -device virtio-serial,multifunction=on -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -netdev user,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0

Relevant part is identical to above, just with fixes to usage - to set two globals you can't use a list separated by commas, it isn't supported by qemu command line parser, you have to use two separate global switches:

-global qxl-vga.ram_size=55555555 -global qxl-vga.vram_size=44444444

Please close as NOTABUG if this fixes your problem.

Comment 4 Sibiao Luo 2012-04-25 04:38:53 UTC
(In reply to comment #3)
> 
> Relevant part is identical to above, just with fixes to usage - to set two
> globals you can't use a list separated by commas, it isn't supported by qemu
> command line parser, you have to use two separate global switches:
> 
> -global qxl-vga.ram_size=55555555 -global qxl-vga.vram_size=44444444
> 
> Please close as NOTABUG if this fixes your problem.

yes, thanks Alon. Can't use a list separated by commas, it isn't supported by qemu command line parser, have to use two separate global switches.
eg: ...-global qxl-vga.ram_size=55555555 -global qxl-vga.vram_size=44444444

so, i close it as NOTABUG.