]> xenbits.xensource.com Git - libvirt.git/commit
domcaps: Remove function initializing domain caps as unsupported
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Nov 2019 08:52:24 +0000 (09:52 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Nov 2019 07:16:51 +0000 (08:16 +0100)
commitc78fadb57c634a42d2dbccc86cbada4d5d940282
tree12d0c1eb35501927208535bee899d3069b4e9e7e
parentd6064e2759a24e0802f363e3a810dc5a7d7ebb15
domcaps: Remove function initializing domain caps as unsupported

Commit 5751a0b6b1968bb2354b2ac21cc5938b93009590 added a helper function
called virDomainCapsFeaturesInitUnsupported which initialized all domain
capability features as unsupported.

When adding a new feature this would initialize it as unsupported also
for hypervisor drivers which the original author possibly didn't intend
to modify. To prevent accidental wrong value being reported in such case
revert back to initializing individual features in the hypervisor
drivers themselves.

This is not a straight revert as additonal patches modified how we store
the capabilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_capabilities.c
src/conf/domain_capabilities.c
src/conf/domain_capabilities.h
src/libvirt_private.syms
src/libxl/libxl_capabilities.c
src/qemu/qemu_capabilities.c