]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Add taint flag for custom hypervisor features
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Jun 2019 15:31:45 +0000 (17:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Jun 2019 13:24:06 +0000 (15:24 +0200)
Upcoming patches will allow enabling/disabling custom hypervisor
features for debugging/testing purposes via the qemu namespace.

Add a taint flag where we will flag such a domain so it's obvious what's
happening.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h

index ba711183d6564ec139110065bccc4983cfeb0f0d..33253edfddfd3f9e2695d0bb0ebf0fac0173759b 100644 (file)
@@ -107,6 +107,7 @@ VIR_ENUM_IMPL(virDomainTaint,
               "cdrom-passthrough",
               "custom-dtb",
               "custom-ga-command",
+              "custom-hypervisor-feature",
 );
 
 VIR_ENUM_IMPL(virDomainVirt,
index 2878050672252f7eb705e2816710eeecc9761bd0..c1b5fc1337e3d79764879774107a6a3daad9fcf1 100644 (file)
@@ -2530,6 +2530,7 @@ typedef enum {
     VIR_DOMAIN_TAINT_CDROM_PASSTHROUGH,/* CDROM passthrough */
     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_LAST
 } virDomainTaintFlags;