]> xenbits.xensource.com Git - libvirt.git/commit
capabilities: Allow suppressing error message from virCapabilitiesDomainSupported()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Mar 2024 13:51:44 +0000 (14:51 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Mar 2024 16:39:21 +0000 (17:39 +0100)
commit6abc1273cf71aa86789225abcf8b2fd43b753234
tree5690db3a40987e9b5b11b8e6c04b3f05da6f53fa
parent36c6d40943b10f498cb32e0827aa058565ae54d6
capabilities: Allow suppressing error message from virCapabilitiesDomainSupported()

In a few cases (CH driver) we want
virCapabilitiesDomainSupported() just to check whether given
virtType is supported and report a different error message (that
suggests how to solve the problem). Introduce reportError
argument which makes the function report an error iff set.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
12 files changed:
src/bhyve/bhyve_domain.c
src/ch/ch_domain.c
src/ch/ch_driver.c
src/ch/ch_process.c
src/conf/capabilities.c
src/conf/capabilities.h
src/libxl/libxl_domain.c
src/lxc/lxc_domain.c
src/openvz/openvz_conf.c
src/vmware/vmware_driver.c
src/vmx/vmx.c
src/vz/vz_driver.c