Description of problem:
Set video type to cirrus, start vm, parameter "vgamem_mb" is not in qemu command line.
Version-Release number of selected component:
Steps to Reproduce:
1. Prepare a guest with the following xml:
# virsh dumpxml rhel7-3
<model type='cirrus' vram='16384' heads='1' primary='yes'/>
2. Start guest
# virsh start rhel7-3
3. Check qemu command line:
# ps aux|grep cirrus
... -device cirrus-vga,id=video0,bus=pci.0,addr=0x2
As step 3
vgamem_mb should be in qemu command line:
... -device cirrus-vga,id=video0,vgamem_mb=16,bus=pci.0,addr=0x2
> Expected results:
> vgamem_mb should be in qemu command line:
> ... -device cirrus-vga,id=video0,vgamem_mb=16,bus=pci.0,addr=0x2
No. cirrus vga memory size isn't configurable. Well, actually it is, but only for live migration backward compatibility reasons. But in any case the amount of video memory usable by the guest is fixed at 4MB, period.
libvirt should not try to muck with vgamem_mb.
If anything libvirt should drop vram=... from xml for type=cirrus.
I proposed a patch to 'fix' this issue by essentially removing the parameter from the xml as suggested by Gerd above. But in the end, I decided that this wasn't really worth fixing since it's not really a bug.