]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move rng model validation to domcaps
authorCole Robinson <crobinso@redhat.com>
Sun, 31 Mar 2019 21:56:48 +0000 (17:56 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 6 Aug 2019 23:45:50 +0000 (19:45 -0400)
commitd1830fba7f39288b8c58a1418c1c3a2be14a102d
treedb8cb3252ae5858bd5b1736f40b7dd063515f66c
parentb66ca0220abb8f2e9afbbd9174da5de32da25347
qemu: Move rng model validation to domcaps

The qemu driver already does some <rng> model validation, based on
qemuCaps. However, the logic for exposing <rng> model values in domcaps
is basically identical. This drops the qemuCaps checking and compares
against the domCaps data directly.

This approach makes it basically impossible to add a new <rng> model to
the qemu driver without extending domcaps. The validation can also
be shared with other drivers eventually.

Reviewed-by: Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/conf/domain_capabilities.c
src/conf/domain_capabilities.h
src/qemu/qemu_domain.c