Hello community,

here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory 
checked in at 2016-06-29 15:10:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Sys-Virt"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes      
2016-06-14 23:07:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new/perl-Sys-Virt.changes 
2016-06-29 15:10:37.000000000 +0200
@@ -1,0 +2,7 @@
+Fri Jun 24 23:55:41 UTC 2016 - [email protected]
+
+- Add migration constraint parameters
+  suse-set-migration-constraints.patch
+  FATE#316614, bsc#859868
+
+-------------------------------------------------------------------

New:
----
  suse-set-migration-constraints.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Sys-Virt.spec ++++++
--- /var/tmp/diff_new_pack.jthMua/_old  2016-06-29 15:10:38.000000000 +0200
+++ /var/tmp/diff_new_pack.jthMua/_new  2016-06-29 15:10:38.000000000 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Sys-Virt/
 Source:         %{cpan_name}-%{version}.tar.gz
+Patch0:         suse-set-migration-constraints.patch
 BuildRequires:  libvirt-devel >= %{version}
 %if 0%{?suse_version} < 1140
 BuildRequires:  perl-macros
@@ -45,6 +46,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
 
 sed -i -e '/Sys-Virt\.spec/d' Makefile.PL
 sed -i -e '/\.spec\.PL$/d' MANIFEST

++++++ suse-set-migration-constraints.patch ++++++
Add migration constraint parameters to libvirt perl bindings

References: fate#316614, bsc#859868

Index: Sys-Virt-1.3.5/Virt.xs
===================================================================
--- Sys-Virt-1.3.5.orig/Virt.xs
+++ Sys-Virt-1.3.5/Virt.xs
@@ -4484,7 +4484,7 @@ _migrate(dom, destcon, newparams, flags=
      virTypedParameter *params;
      int nparams;
     CODE:
-     nparams = 13;
+     nparams = 17;
      Newx(params, nparams, virTypedParameter);
 
      strncpy(params[0].field, VIR_MIGRATE_PARAM_URI,
@@ -4539,6 +4539,22 @@ _migrate(dom, destcon, newparams, flags=
              VIR_TYPED_PARAM_FIELD_LENGTH);
      params[12].type = VIR_TYPED_PARAM_STRING;
 
+     strncpy(params[13].field, VIR_MIGRATE_PARAM_SUSE_MAX_ITERS,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[13].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[14].field, VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[14].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[15].field, VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[15].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[16].field, VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[16].type = VIR_TYPED_PARAM_UINT;
+
      nparams = vir_typed_param_from_hv(newparams, params, nparams);
 
      vir_typed_param_add_string_list_from_hv(newparams, &params, &nparams,
@@ -4567,7 +4583,7 @@ _migrate_to_uri(dom, desturi, newparams,
      virTypedParameter *params;
      int nparams;
   PPCODE:
-     nparams = 13;
+     nparams = 17;
      Newx(params, nparams, virTypedParameter);
 
      strncpy(params[0].field, VIR_MIGRATE_PARAM_URI,
@@ -4622,6 +4638,22 @@ _migrate_to_uri(dom, desturi, newparams,
              VIR_TYPED_PARAM_FIELD_LENGTH);
      params[12].type = VIR_TYPED_PARAM_STRING;
 
+     strncpy(params[13].field, VIR_MIGRATE_PARAM_SUSE_MAX_ITERS,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[13].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[14].field, VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[14].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[15].field, VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[15].type = VIR_TYPED_PARAM_UINT;
+
+     strncpy(params[16].field, VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY,
+             VIR_TYPED_PARAM_FIELD_LENGTH);
+     params[16].type = VIR_TYPED_PARAM_UINT;
+
      nparams = vir_typed_param_from_hv(newparams, params, nparams);
 
      vir_typed_param_add_string_list_from_hv(newparams, &params, &nparams,
@@ -7667,6 +7699,10 @@ BOOT:
       REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL, 
MIGRATE_PARAM_COMPRESSION_MT_LEVEL);
       REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE, 
MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE);
       REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PERSIST_XML, 
MIGRATE_PARAM_PERSIST_XML);
+      REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_SUSE_MAX_ITERS, 
MIGRATE_PARAM_SUSE_MAX_ITERS);
+      REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_SUSE_MAX_FACTOR, 
MIGRATE_PARAM_SUSE_MAX_FACTOR);
+      REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING, 
MIGRATE_PARAM_SUSE_MIN_REMAINING);
+      REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY, 
MIGRATE_PARAM_SUSE_ABORT_IF_BUSY);
 
       REGISTER_CONSTANT(VIR_DOMAIN_XML_SECURE, XML_SECURE);
       REGISTER_CONSTANT(VIR_DOMAIN_XML_INACTIVE, XML_INACTIVE);
Index: Sys-Virt-1.3.5/lib/Sys/Virt/Domain.pm
===================================================================
--- Sys-Virt-1.3.5.orig/lib/Sys/Virt/Domain.pm
+++ Sys-Virt-1.3.5/lib/Sys/Virt/Domain.pm
@@ -1053,6 +1053,22 @@ The size of the cache for xbzrle compres
 
 The alternative persistent XML config to copy
 
+=item C<Sys::Virt::Domain::MIGRATE_PARAM_SUSE_MAX_ITERS>
+
+The the maximum number of iterations before final suspend
+
+=item C<Sys::Virt::Domain::MIGRATE_PARAM_SUSE_MAX_FACTOR>
+
+The maximum amount of memory to transfer before final suspend
+
+=item C<Sys::Virt::Domain::MIGRATE_PARAM_SUSE_MIN_REMAINING>
+
+The number of dirty pages before final suspend
+
+=item C<Sys::Virt::Domain::MIGRATE_PARAM_SUSE_ABORT_IF_BUSY>
+
+Abort the migration instead of doing the final suspend for VMs with busy 
workloads
+
 =back
 
 =item $ddom = $dom->migrate(destcon, flags=0, dname=undef, uri=undef, 
bandwidth=0)

Reply via email to