]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: introduce new taint flag for deprecated configuration
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 Jan 2021 11:43:02 +0000 (11:43 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 3 Feb 2021 17:30:58 +0000 (17:30 +0000)
Hypervisors are capable of reporting that some features are deprecated.
This should be used to mark a domain as tainted.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h

index 69b284192452b6b399c697253330b1611cfafdf2..f2b8d380c93123e4c75e799adbb05cf0e010ce4f 100644 (file)
@@ -87,6 +87,7 @@ VIR_ENUM_IMPL(virDomainTaint,
               "custom-dtb",
               "custom-ga-command",
               "custom-hypervisor-feature",
+              "deprecated-config",
 );
 
 VIR_ENUM_IMPL(virDomainVirt,
index dc54f95433b7b7f89f59cefa1f98532dcd78bec9..8b1c8643be2945579a6679c9da8d269968e78310 100644 (file)
@@ -2759,6 +2759,7 @@ typedef enum {
     VIR_DOMAIN_TAINT_CUSTOM_DTB,       /* Custom device tree blob was specified */
     VIR_DOMAIN_TAINT_CUSTOM_GA_COMMAND, /* Custom guest agent command */
     VIR_DOMAIN_TAINT_CUSTOM_HYPERVISOR_FEATURE, /* custom hypervisor feature control */
+    VIR_DOMAIN_TAINT_DEPRECATED_CONFIG,  /* Configuration that is marked deprecated */
 
     VIR_DOMAIN_TAINT_LAST
 } virDomainTaintFlags;