[libvirt] [perl PATCH 2/6] Add handling for VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS

Daniel P. Berrangé berrange at redhat.com
Tue Dec 10 13:17:15 UTC 2019


Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 Changes         |  2 ++
 lib/Sys/Virt.xs | 12 ++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Changes b/Changes
index 2ba87bb..ba33d40 100644
--- a/Changes
+++ b/Changes
@@ -6,6 +6,8 @@ Revision history for perl module Sys::Virt
    constants
  - Fix typo breaking migration postcopy bandwidth and
    autoconvert increment parameter handling
+ - Add handling for VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS
+   constant when invoking migrate
 
 5.10.0 2019-12-03
 
diff --git a/lib/Sys/Virt.xs b/lib/Sys/Virt.xs
index 08fd084..b52ae7d 100644
--- a/lib/Sys/Virt.xs
+++ b/lib/Sys/Virt.xs
@@ -5413,7 +5413,7 @@ _migrate(dom, destcon, newparams, flags=0)
      virTypedParameterPtr params;
      int nparams;
     CODE:
-     nparams = 16;
+     nparams = 17;
      Newx(params, nparams, virTypedParameter);
 
      strncpy(params[0].field, VIR_MIGRATE_PARAM_URI,
@@ -5480,6 +5480,10 @@ _migrate(dom, destcon, newparams, flags=0)
              VIR_TYPED_PARAM_FIELD_LENGTH);
      params[15].type = VIR_TYPED_PARAM_ULLONG;
 
+     strncpy(params[16].field, VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[16].type = VIR_TYPED_PARAM_INT;
+
      nparams = vir_typed_param_from_hv(newparams, params, nparams);
 
      vir_typed_param_add_string_list_from_hv(newparams, &params, &nparams,
@@ -5508,7 +5512,7 @@ _migrate_to_uri(dom, desturi, newparams, flags=0)
      virTypedParameterPtr params;
      int nparams;
   PPCODE:
-     nparams = 16;
+     nparams = 17;
      Newx(params, nparams, virTypedParameter);
 
      strncpy(params[0].field, VIR_MIGRATE_PARAM_URI,
@@ -5575,6 +5579,10 @@ _migrate_to_uri(dom, desturi, newparams, flags=0)
              VIR_TYPED_PARAM_FIELD_LENGTH);
      params[15].type = VIR_TYPED_PARAM_ULLONG;
 
+     strncpy(params[16].field, VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[16].type = VIR_TYPED_PARAM_INT;
+
      nparams = vir_typed_param_from_hv(newparams, params, nparams);
 
      vir_typed_param_add_string_list_from_hv(newparams, &params, &nparams,
-- 
2.23.0




More information about the libvir-list mailing list