[libvirt] [PATCH 08/15] conf: Add taint flag for custom hypervisor features

Peter Krempa pkrempa at redhat.com
Tue Jun 18 13:10:17 UTC 2019


Upcomming 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 at redhat.com>
---
 src/conf/domain_conf.c | 1 +
 src/conf/domain_conf.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index ee651e7742..5503f081f1 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -107,6 +107,7 @@ VIR_ENUM_IMPL(virDomainTaint,
               "cdrom-passthrough",
               "custom-dtb",
               "custom-ga-command",
+              "custom-hypervisor-feature",
 );

 VIR_ENUM_IMPL(virDomainVirt,
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 2878050672..c1b5fc1337 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -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;
-- 
2.21.0




More information about the libvir-list mailing list