]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add 'x' and 'y' resolution into video XML definition
authorJulio Faracco <jcfaracco@gmail.com>
Thu, 17 Oct 2019 04:30:31 +0000 (01:30 -0300)
committerCole Robinson <crobinso@redhat.com>
Thu, 17 Oct 2019 20:18:34 +0000 (16:18 -0400)
commit7286279797a34b3083d85bc4556432b5e7ad9fff
treed65e1e3840a53c3910802880ae7eb9014457c107
parentfbf7c23c2dfae0ff879c98130c3765b4c1ebf34e
conf: Add 'x' and 'y' resolution into video XML definition

This commit adds resolution element with parameters 'x' and 'y' into video
XML domain group definition. Both, properties were added into an element
called 'resolution' and it was added inside 'model' element. They are set
as optional. This element does not follow QEMU properties 'xres' and
'yres' format. Both HTML documentation and schema were changed too. This
commit includes a simple test case to cover resolution for QEMU video
models. The new XML format for resolution looks like:

    <model ...>
      <resolution x='800' y='600'/>
    </model>

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/virconftypes.h
tests/qemuxml2argvdata/video-qxl-resolution.args [new file with mode: 0644]
tests/qemuxml2argvdata/video-qxl-resolution.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/video-qxl-resolution.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c