]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu-command: use vram attribute for all video devices
authorPavel Hrdina <phrdina@redhat.com>
Thu, 20 Nov 2014 18:51:12 +0000 (19:51 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 24 Nov 2014 21:18:18 +0000 (22:18 +0100)
commit24c6ca860e2cf25aa28b33e19c318296b291e42c
treec3e1995f2444e9232b71b63f45a83b382e0de9b4
parentf480a87aa6ebaef0f478f2c67bfbeeee872e63e0
qemu-command: use vram attribute for all video devices

So far we didn't have any option to set video memory size for qemu video
devices. There was only the vram (ram for QXL) attribute but it was valid
only for the QXL video device.

To provide this feature to users QEMU has a dedicated device attribute
called 'vgamem_mb' to set the video memory size. We will use the 'vram'
attribute for setting video memory size for other QEMU video devices.

For the cirrus device we will ignore the vram value because it has
hardcoded video size in QEMU.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1076098

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
19 files changed:
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-device-vgamem.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-device-vgamem.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-device.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-device.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-nodevice.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-nodevice.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-sec-device-vgamem.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-sec-device-vgamem.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-sec-device.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-sec-device.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-qxl-sec-nodevice.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-device-vgamem.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-device-vgamem.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-device.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-device.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-nodevice.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-video-vga-nodevice.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c