]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
video: cleanup usage of vram attribute and update documentation
authorPavel Hrdina <phrdina@redhat.com>
Mon, 24 Nov 2014 10:58:53 +0000 (11:58 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 24 Nov 2014 21:05:55 +0000 (22:05 +0100)
commit81ba2298b27aa3257e7b5136f5dd5055076d7d9c
tree87d22e73428942be3295e7dd2ee4b92b37bad10d
parentff28ebf13622ec3667f63fc0c0c22698331ced4b
video: cleanup usage of vram attribute and update documentation

The vram attribute was introduced to set the video memory but it is
usable only for few hypervisors excluding QEMU/KVM and the old XEN
driver. Only in case of QEMU the vram was used for QXL.

This patch updates the documentation to reflect current code in libvirt
and also changes the cases when we will set the default vram attribute.
It also fixes existing strange default value for VGA devices 9MB to 16MB
because the video ram should be rounded to power of two.

The change of default value could affect migrations but I found out that
QEMU always round the video ram to power of two internally so it's safe
to change the default value to the next closest power of two and also
silently correct every domain XML definition. And it's also safe because
we don't pass the value to QEMU.

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

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
43 files changed:
docs/formatdomain.html.in
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/xen/xen_driver.c
tests/qemuhotplugtestdata/qemuhotplug-console-compat-2+console-virtio.xml
tests/qemuxml2argvdata/qemuxml2argv-console-compat-2.xml
tests/qemuxml2argvdata/qemuxml2argv-controller-order.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-listen-network.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-listen-network2.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-agentmouse.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-compression.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-compression.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-sasl.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-sasl.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-policy.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-socket.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-websocket.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.xml
tests/qemuxml2argvdata/qemuxml2argv-net-bandwidth.xml
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-addr.xml
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-idx.xml
tests/qemuxml2argvdata/qemuxml2argv-pci-bridge.xml
tests/qemuxml2argvdata/qemuxml2argv-pcihole64-q35.args
tests/qemuxml2argvdata/qemuxml2argv-pcihole64-q35.xml
tests/qemuxml2argvdata/qemuxml2argv-pseries-disk.xml
tests/qemuxml2argvdata/qemuxml2argv-q35.args
tests/qemuxml2argvdata/qemuxml2argv-q35.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-spiceport.args
tests/qemuxml2argvdata/qemuxml2argv-serial-spiceport.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-listen-network2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-timeout.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-addr.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-idx.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35.xml
tests/virt-aa-helper-test