]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Refactor storing and usage of feature flags
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Sep 2013 13:02:38 +0000 (15:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Nov 2013 08:44:42 +0000 (09:44 +0100)
commitde7b5faf43645229c74843032402c0d58a397e88
tree12814730a334b74e5db04edf67f36a35b8dd0595
parent2e8f90802ddc5405121ba1b92f47b885867a325a
conf: Refactor storing and usage of feature flags

Currently we were storing domain feature flags in a bit field as the
they were either enabled or disabled. New features such as paravirtual
spinlocks however can be tri-state as the default option may depend on
hypervisor version.

To allow storing tri-state feature state in the same place instead of
having to declare dedicated variables for each feature this patch
refactors the bit field to an array.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/libxl_conf.c
src/lxc/lxc_container.c
src/qemu/qemu_command.c
src/vbox/vbox_tmpl.c
src/xenapi/xenapi_driver.c
src/xenapi/xenapi_utils.c
src/xenxs/xen_sxpr.c
src/xenxs/xen_xm.c