]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDeviceVideoGetModel: Clarify 'virtio' argument
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Sep 2021 14:39:59 +0000 (16:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:01 +0000 (10:26 +0200)
commit6cbbb83d32e930b72aa76661055bf73b9bdd0477
tree32d79c32e38f67d2cc8fd91cd2821bd184bc3b40
parenta1dc15e6778ca062fa7ce66defaa24295625a7e4
qemuDeviceVideoGetModel: Clarify 'virtio' argument

The 'virtio' argument was misleadingly implying that it's true for all
virtio devices, but that's not the case. 'virtio-vga(-gl)' is a virtio
device but doesn't accept the usual bus-dependant suffix.

Add a comment for 'qemuDeviceVideoGetModel' and another boolean
'virtioBusSuffix' which carries the above meaning so that the 'virtio'
argument can be fixed (it will be used later).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c