[PATCH v4 01/12] hyperv: store WMI version in hypervPrivate.

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

 



Hyper-V 2012+ uses a new "v2" version of Msvm_* WMI classes so we will
store that info in hypervPrivate so that it is easily accessbile in the
driver API callbacks and handled accordingly.
---
 src/hyperv/hyperv_private.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/hyperv/hyperv_private.h b/src/hyperv/hyperv_private.h
index 574bb5f..4e70699 100644
--- a/src/hyperv/hyperv_private.h
+++ b/src/hyperv/hyperv_private.h
@@ -28,11 +28,17 @@
 # include "hyperv_util.h"
 # include "openwsman.h"
 
-typedef struct _hypervPrivate hypervPrivate;
+typedef enum _hypervWmiVersion hypervWmiVersion;
+enum _hypervWmiVersion {
+    HYPERV_WMI_VERSION_V1,
+    HYPERV_WMI_VERSION_V2,
+};
 
+typedef struct _hypervPrivate hypervPrivate;
 struct _hypervPrivate {
     hypervParsedUri *parsedUri;
     WsManClient *client;
+    hypervWmiVersion wmiVersion;
 };
 
 #endif /* __HYPERV_PRIVATE_H__ */
-- 
2.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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