]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_capabilities: check for existence of virtio-vga
authorPavel Hrdina <phrdina@redhat.com>
Tue, 11 Oct 2016 12:07:58 +0000 (14:07 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 12 Oct 2016 15:46:48 +0000 (17:46 +0200)
commit6869428c128a4e2c39aa9ee53c0e0de69174952f
tree6689a97a138bc8bdc9650bdbcb1a6d8c79754600
parent9562fb55bff9561bd047d5704bd501686a7a9e8c
qemu_capabilities: check for existence of virtio-vga

Commit 21373feb added support for primary virtio-vga device but it was
checking for virtio-gpu.  Let's check for existence of virtio-vga if we
want to use it.

Virtio video device is currently represented by three different models
*virtio-gpu-device*, *virtio-gpu-pci* and *virtio-vga*.  The first two
models are tied together and if virtio video devices is compiled in they
both exist.  However, the *virtio-vga* model doesn't have to exist on
some architectures even if the first two models exist.  So we cannot
group all three together.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml