]> xenbits.xensource.com Git - libvirt.git/commit
qemu: the actual change of default video devide type selection algorithm
authorPavel Mores <pmores@redhat.com>
Mon, 25 Nov 2019 10:54:25 +0000 (11:54 +0100)
committerCole Robinson <crobinso@redhat.com>
Mon, 25 Nov 2019 13:47:08 +0000 (08:47 -0500)
commit33a9757852e176b4a29889923041d45ef24b1fe9
tree93a9f10ef8ccbd139e64c7f7cef0fbb4bb45f11d
parent4a067e70fabbdf6789ae56ea60091717ce8ec8b3
qemu: the actual change of default video devide type selection algorithm

If a graphics device was added to XML that had no video device, libvirt
automatically added a video device which was always of type 'cirrus' on
x86_64, even if the underlying qemu didn't support cirrus.

This patch refines a bit the decision about the type of the video device.
Based on QEMU capabilities, cirrus is still preferred but only added if
QEMU supports it, otherwise VGA is used if supported by QEMU.  There is now
no fallback as libvirt only aspires to generate a basic working config and
leaves anything more specific up to higher-level management tools.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pavel Mores <pmores@redhat.com>
src/qemu/qemu_domain.c