]> xenbits.xensource.com Git - people/dariof/libvirt.git/commit
qemu: Support ram bar size for qxl devices
authorAlon Levy <alevy@redhat.com>
Fri, 18 Jan 2013 18:36:36 +0000 (20:36 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 22 Jan 2013 17:40:45 +0000 (10:40 -0700)
commit55bfd020d8d9de40977832c4762728090df2bee3
tree2d40e403b5fe7aaaae36e5cdfd84478ee6a161a5
parentc9a85af319910dfad70bcf311dfe36552f39a37a
qemu: Support ram bar size for qxl devices

Adds a "ram" attribute globally to the video.model element, that changes
the resulting qemu command line only if video.type == "qxl".

<video>
  <model type='qxl' ram='65536' vram='65536' heads='1'/>
</video>

That attribute gets a default value of 64*1024. The schema is unchanged
for other video element types.

The resulting qemu command line change is the addition of

-global qxl-vga.ram_size=<ram>*1024

or

-global qxl.ram_size=<ram>*1024

For the main and secondary qxl devices respectively.

The default for the qxl ram bar is 64*1024 kilobytes (the same as the
default qxl vram bar size).
12 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-compression.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-compression.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-qxl-vga.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-qxl-vga.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice.xml
tests/qemuxml2argvdata/qemuxml2argv-video-device-pciaddr-default.args