]> git.ipfire.org Git - thirdparty/libvirt.git/commit
driver: Introduce global driver feature flag handling function
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Feb 2022 12:01:39 +0000 (13:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Feb 2022 12:15:46 +0000 (13:15 +0100)
commitf24a22315b16cdea3e4ad980e51f856849edb612
treea885756db731d510aec704aecab8184651f2d872
parentf3c2b321e0807399551fa96fa2cae0b12e41fdf4
driver: Introduce global driver feature flag handling function

The 'virDrvFeature' has a combination of features which are asserted by
the specific driver and features which are actually global.

In many cases the implementation was cargo-culted into newer drivers
without re-assesing whether it makes sense.

This patch introduces a global function which will specifically handle
these global flags and defer the rest to the driver.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
12 files changed:
src/ch/ch_driver.c
src/driver.c
src/driver.h
src/esx/esx_driver.c
src/libvirt_private.syms
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/vz/vz_driver.c