[PATCH v3 8/9] hyperv: fix domainManagedSave on Hyper-V V2

Matt Coleman mcoleman at datto.com
Wed Oct 21 09:41:08 UTC 2020


> On Oct 21, 2020, at 4:46 AM, Matt Coleman <mcoleman at datto.com> wrote:
> 
> +    int requestedState;

This caused GitLab CI failures that didn't happen on my local builds.

This should be squashed in...
===================================================================
--- src/hyperv/hyperv_driver.c	(revision 4839b7ab5dbd1240773cad00edd57b511b3db286)
+++ src/hyperv/hyperv_driver.c	(revision bb65d324c00d7d4f8a4102f98343af2139d4ef45)
@@ -1643,7 +1643,7 @@
     hypervPrivate *priv = domain->conn->privateData;
     Msvm_ComputerSystem *computerSystem = NULL;
     bool in_transition = false;
-    int requestedState;
+    int requestedState = -1; /* dummy value: this must be set later in the function */
 
     switch (priv->wmiVersion) {
     case HYPERV_WMI_VERSION_V1:





More information about the libvir-list mailing list