]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: use domain caps to validate video device model
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 18 Oct 2019 15:30:16 +0000 (10:30 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Nov 2019 16:37:50 +0000 (11:37 -0500)
commitc66f2be6f107da98a329e2e03c783b6c14d5694b
tree3915dc961e38a99404fa862513289a89e10c6d00
parent42cc3eb9125ff1d1c24c2d69d84db8086ebedf02
qemu: use domain caps to validate video device model

As suggested by Cole, this patch uses the domain capabilities to
validate the supported video model types. This allows us to remove the
model type validation from qemu_process.c and qemu_domain.c and
consolidates it all in a single place that will automatically adjust
when new domain capabilities are added.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
src/conf/domain_capabilities.c
src/qemu/qemu_domain.c
src/qemu/qemu_process.c