[libvirt PATCH 03/10] conf: domain: Define enum for HyperV mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 6 ++++++
 src/conf/domain_conf.h | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index f88405ab02..74d86a346a 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -137,6 +137,12 @@ VIR_ENUM_IMPL(virDomainOS,
               "xenpvh",
 );
 
+VIR_ENUM_IMPL(virDomainHyperVMode,
+              VIR_DOMAIN_HYPERV_MODE_LAST,
+              "none",
+              "custom",
+);
+
 VIR_ENUM_IMPL(virDomainBoot,
               VIR_DOMAIN_BOOT_LAST,
               "fd",
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index c4a8dcc2ea..169fc17039 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -155,6 +155,13 @@ typedef enum {
 } virDomainOSType;
 VIR_ENUM_DECL(virDomainOS);
 
+typedef enum {
+    VIR_DOMAIN_HYPERV_MODE_NONE = 0,
+    VIR_DOMAIN_HYPERV_MODE_CUSTOM,
+
+    VIR_DOMAIN_HYPERV_MODE_LAST
+} virDomainHyperVMode;
+VIR_ENUM_DECL(virDomainHyperVMode);
 
 struct _virDomainHostdevOrigStates {
     union {
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux