Hello community, here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory checked in at 2017-04-11 09:41:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old) and /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sys-Virt" Tue Apr 11 09:41:14 2017 rev:52 rq:484993 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes 2017-03-14 10:07:17.310077554 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new/perl-Sys-Virt.changes 2017-04-11 09:41:19.841564433 +0200 @@ -1,0 +2,7 @@ +Mon Apr 3 17:15:36 UTC 2017 - jfeh...@suse.com + +- Update to 3.2.0 + - Add all new APIs and constants in libvirt 3.2.0 + - FATE#319684, FATE#321335, FATE#321349 + +------------------------------------------------------------------- Old: ---- Sys-Virt-3.1.0.tar.gz New: ---- Sys-Virt-3.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sys-Virt.spec ++++++ --- /var/tmp/diff_new_pack.UElk4P/_old 2017-04-11 09:41:20.953407371 +0200 +++ /var/tmp/diff_new_pack.UElk4P/_new 2017-04-11 09:41:20.957406806 +0200 @@ -17,7 +17,7 @@ Name: perl-Sys-Virt -Version: 3.1.0 +Version: 3.2.0 Release: 0 %define cpan_name Sys-Virt Summary: Represent and manage a libvirt hypervisor connection ++++++ Sys-Virt-3.1.0.tar.gz -> Sys-Virt-3.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/Changes new/Sys-Virt-3.2.0/Changes --- old/Sys-Virt-3.1.0/Changes 2017-03-03 17:58:41.000000000 +0100 +++ new/Sys-Virt-3.2.0/Changes 2017-04-03 15:40:07.000000000 +0200 @@ -1,5 +1,20 @@ Revision history for perl module Sys::Virt +3.2.0 2017-04-03 + + - Add PERF_PARAM_CPU_CLOCK constant + - Add PERF_PARAM_TASK_CLOCK constant + - Add PERF_PARAM_PAGE_FAULTS constant + - Add PERF_PARAM_CONTEXT_SWITCHES constant + - Add PERF_PARAM_CPU_MIGRATIONS constant + - Add PERF_PARAM_PAGE_FAULTS_MIN constant + - Add PERF_PARAM_PAGE_FAULTS_MAJ constant + - Add PERF_PARAM_ALIGNMENT_FAULTS constant + - Add PERF_PARAM_EMULATION_FAULTS constant + - Add block threshold event + - Add virDomainSetBlockThreshold API + - Add VIR_MIGRATE_TLS constant + 3.1.0 2017-03-03 - Add VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE constant diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/META.yml new/Sys-Virt-3.2.0/META.yml --- old/Sys-Virt-3.1.0/META.yml 2017-03-03 17:59:47.000000000 +0100 +++ new/Sys-Virt-3.2.0/META.yml 2017-04-03 15:41:13.000000000 +0200 @@ -1,7 +1,7 @@ --- #YAML:1.0 name: Sys-Virt abstract: Extension for the libvirt library -version: 3.1.0 +version: 3.2.0 author: - Daniel P. Berrange <d...@berrange.com> license: perl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/MYMETA.json new/Sys-Virt-3.2.0/MYMETA.json --- old/Sys-Virt-3.1.0/MYMETA.json 2017-03-03 17:59:39.000000000 +0100 +++ new/Sys-Virt-3.2.0/MYMETA.json 2017-04-03 15:41:05.000000000 +0200 @@ -42,6 +42,6 @@ } }, "release_status" : "stable", - "version" : "v3.1.0", + "version" : "v3.2.0", "x_serialization_backend" : "JSON::PP version 2.27400" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/MYMETA.yml new/Sys-Virt-3.2.0/MYMETA.yml --- old/Sys-Virt-3.1.0/MYMETA.yml 2017-03-03 17:59:39.000000000 +0100 +++ new/Sys-Virt-3.2.0/MYMETA.yml 2017-04-03 15:41:05.000000000 +0200 @@ -24,5 +24,5 @@ Test::Pod::Coverage: '0' Time::HiRes: '0' XML::XPath: '0' -version: v3.1.0 +version: v3.2.0 x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/Makefile.PL new/Sys-Virt-3.2.0/Makefile.PL --- old/Sys-Virt-3.1.0/Makefile.PL 2017-01-19 12:05:42.000000000 +0100 +++ new/Sys-Virt-3.2.0/Makefile.PL 2017-03-07 10:57:27.000000000 +0100 @@ -3,7 +3,7 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. -my $libvirtver = "3.1.0"; +my $libvirtver = "3.2.0"; my $stat = system "pkg-config --atleast-version=$libvirtver libvirt"; die "cannot run pkg-config to check libvirt version" if $stat == -1; die "libvirt >= $libvirtver is required\n" unless $stat == 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/README new/Sys-Virt-3.2.0/README --- old/Sys-Virt-3.1.0/README 2017-01-19 12:05:37.000000000 +0100 +++ new/Sys-Virt-3.2.0/README 2017-03-07 10:57:18.000000000 +0100 @@ -7,6 +7,6 @@ The only pre-requisite for this module is libvirt itself. For installation instructions, consult the INSTALL file. -The current minimum required version of libvirt is 3.1.0 +The current minimum required version of libvirt is 3.2.0 -- End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/Virt.xs new/Sys-Virt-3.2.0/Virt.xs --- old/Sys-Virt-3.1.0/Virt.xs 2017-02-23 12:33:46.000000000 +0100 +++ new/Sys-Virt-3.2.0/Virt.xs 2017-04-03 15:25:40.000000000 +0200 @@ -1136,6 +1136,50 @@ static int +_domain_event_block_threshold_callback(virConnectPtr con, + virDomainPtr dom, + const char *dev, + const char *path, + unsigned long long threshold, + unsigned long long excess, + void *opaque) +{ + AV *data = opaque; + SV **self; + SV **cb; + SV *domref; + dSP; + + self = av_fetch(data, 0, 0); + cb = av_fetch(data, 1, 0); + + SvREFCNT_inc(*self); + + ENTER; + SAVETMPS; + + PUSHMARK(SP); + XPUSHs(*self); + domref = sv_newmortal(); + sv_setref_pv(domref, "Sys::Virt::Domain", (void *) dom); + virDomainRef(dom); + XPUSHs(domref); + XPUSHs(sv_2mortal(newSVpv(dev, 0))); + XPUSHs(sv_2mortal(newSVpv(path, 0))); + XPUSHs(sv_2mortal(newSViv(threshold))); + XPUSHs(sv_2mortal(newSViv(excess))); + PUTBACK; + + call_sv(*cb, G_DISCARD); + + FREETMPS; + LEAVE; + + return 0; +} + + +static int _network_event_lifecycle_callback(virConnectPtr con, virNetworkPtr net, int event, @@ -3375,6 +3419,9 @@ case VIR_DOMAIN_EVENT_ID_METADATA_CHANGE: callback = VIR_DOMAIN_EVENT_CALLBACK(_domain_event_metadata_change_callback); break; + case VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD: + callback = VIR_DOMAIN_EVENT_CALLBACK(_domain_event_block_threshold_callback); + break; default: callback = VIR_DOMAIN_EVENT_CALLBACK(_domain_event_generic_callback); break; @@ -6073,6 +6120,18 @@ if (virDomainSendProcessSignal(dom, pid, signum, flags) < 0) _croak_error(); +void +set_block_threshold(dom, dev, thresholdsv, flags=0) + virDomainPtr dom; + const char *dev; + SV *thresholdsv; + unsigned int flags; + PREINIT: + unsigned long long threshold; + PPCODE: + threshold = virt_SvIVull(thresholdsv); + if (virDomainSetBlockThreshold(dom, dev, threshold, flags) < 0) + _croak_error(); void destroy(dom_rv, flags=0) @@ -8160,6 +8219,7 @@ REGISTER_CONSTANT(VIR_MIGRATE_AUTO_CONVERGE, MIGRATE_AUTO_CONVERGE); REGISTER_CONSTANT(VIR_MIGRATE_RDMA_PIN_ALL, MIGRATE_RDMA_PIN_ALL); REGISTER_CONSTANT(VIR_MIGRATE_POSTCOPY, MIGRATE_POSTCOPY); + REGISTER_CONSTANT(VIR_MIGRATE_TLS, MIGRATE_TLS); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH, MIGRATE_PARAM_BANDWIDTH); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_DEST_NAME, MIGRATE_PARAM_DEST_NAME); @@ -8384,6 +8444,7 @@ REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_JOB_COMPLETED, EVENT_ID_JOB_COMPLETED); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED, EVENT_ID_DEVICE_REMOVAL_FAILED); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_METADATA_CHANGE, EVENT_ID_METADATA_CHANGE); + REGISTER_CONSTANT(VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD, EVENT_ID_BLOCK_THRESHOLD); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_WATCHDOG_NONE, EVENT_WATCHDOG_NONE); REGISTER_CONSTANT(VIR_DOMAIN_EVENT_WATCHDOG_PAUSE, EVENT_WATCHDOG_PAUSE); @@ -8500,6 +8561,15 @@ REGISTER_CONSTANT_STR(VIR_PERF_PARAM_STALLED_CYCLES_FRONTEND, PERF_PARAM_STALLED_CYCLES_FRONTEND); REGISTER_CONSTANT_STR(VIR_PERF_PARAM_STALLED_CYCLES_BACKEND, PERF_PARAM_STALLED_CYCLES_BACKEND); REGISTER_CONSTANT_STR(VIR_PERF_PARAM_REF_CPU_CYCLES, PERF_PARAM_REF_CPU_CYCLES); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_CPU_CLOCK, PERF_PARAM_CPU_CLOCK); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_TASK_CLOCK, PERF_PARAM_TASK_CLOCK); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_PAGE_FAULTS, PERF_PARAM_PAGE_FAULTS); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_CONTEXT_SWITCHES, PERF_PARAM_CONTEXT_SWITCHES); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_CPU_MIGRATIONS, PERF_PARAM_CPU_MIGRATIONS); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_PAGE_FAULTS_MIN, PERF_PARAM_PAGE_FAULTS_MIN); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_PAGE_FAULTS_MAJ, PERF_PARAM_PAGE_FAULTS_MAJ); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_ALIGNMENT_FAULTS, PERF_PARAM_ALIGNMENT_FAULTS); + REGISTER_CONSTANT_STR(VIR_PERF_PARAM_EMULATION_FAULTS, PERF_PARAM_EMULATION_FAULTS); REGISTER_CONSTANT_STR(VIR_DOMAIN_BANDWIDTH_IN_AVERAGE, BANDWIDTH_IN_AVERAGE); REGISTER_CONSTANT_STR(VIR_DOMAIN_BANDWIDTH_IN_PEAK, BANDWIDTH_IN_PEAK); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/lib/Sys/Virt/Domain.pm new/Sys-Virt-3.2.0/lib/Sys/Virt/Domain.pm --- old/Sys-Virt-3.1.0/lib/Sys/Virt/Domain.pm 2017-02-23 12:35:03.000000000 +0100 +++ new/Sys-Virt-3.2.0/lib/Sys/Virt/Domain.pm 2017-04-03 15:25:40.000000000 +0200 @@ -1924,6 +1924,15 @@ later, not a POSIX or Linux signal value. C<$flags> is currently unused and defaults to zero. +=item $dom->set_block_threshold($dev, $threshold, $flags=0); + +Set the threshold level for delivering the +EVENT_ID_BLOCK_THRESHOLD if the device or backing chain element +described by C<$dev> is written beyond the set C<$threshold> +level. The threshold level is unset once the event fires. The +event might not be delivered at all if libvirtd was not running +at the moment when the threshold was reached. + =back =head1 CONSTANTS @@ -2384,6 +2393,13 @@ Enable support for post-copy migration +=item Sys::Virt::Domain::MIGRATE_TLS + +Setting this flag will cause the migration to attempt to use the +TLS environment configured by the hypervisor in order to perform +the migration. If incorrectly configured on either source or +destination, the migration will fail. + =back =head2 UNDEFINE CONSTANTS @@ -2814,6 +2830,60 @@ It corresponds to the "perf.ref_cpu_cycles" field in the *Stats APIs. +=item Sys::Virt::Domain::PERF_PARAM_CPU_CLOCK +The cpu_clock perf event counter which can be used to +measure the count of cpu clock time by applications +running on the platform. It corresponds to the +"perf.cpu_clock" field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_TASK_CLOCK +The task_clock perf event counter which can be used to +measure the count of task clock time by applications +running on the platform. It corresponds to the +"perf.task_clock" field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_PAGE_FAULTS +The page_faults perf event counter which can be used to +measure the count of page faults by applications running +on the platform. It corresponds to the "perf.page_faults" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_CONTEXT_SWITCHES +The context_switches perf event counter which can be used to +measure the count of context switches by applications running +on the platform. It corresponds to the "perf.context_switches" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_CPU_MIGRATIONS +The cpu_migrations perf event counter which can be used to +measure the count of cpu migrations by applications running +on the platform. It corresponds to the "perf.cpu_migrations" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_PAGE_FAULTS_MIN +The page_faults_min perf event counter which can be used to +measure the count of minor page faults by applications running +on the platform. It corresponds to the "perf.page_faults_min" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_PAGE_FAULTS_MAJ +The page_faults_maj perf event counter which can be used to +measure the count of major page faults by applications running +on the platform. It corresponds to the "perf.page_faults_maj" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_ALIGNMENT_FAULTS +The alignment_faults perf event counter which can be used to +measure the count of alignment faults by applications running +on the platform. It corresponds to the "perf.alignment_faults" +field in the *Stats APIs. + +=item Sys::Virt::Domain::PERF_PARAM_EMULATION_FAULTS +The emulation_faults perf event counter which can be used to +measure the count of emulation faults by applications running +on the platform. It corresponds to the "perf.emulation_faults" +field in the *Stats APIs. + =back =head2 VCPU FLAGS @@ -3220,6 +3290,12 @@ The domain metadata has changed +=item Sys::Virt::Domain::EVENT_ID_BLOCK_THRESHOLD + +The event occurs when the hypervisor detects that the given +storage element was written beyond the point specified by +threshold. The event is useful for thin-provisioned storage. + =back =head2 IO ERROR EVENT CONSTANTS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/lib/Sys/Virt.pm new/Sys-Virt-3.2.0/lib/Sys/Virt.pm --- old/Sys-Virt-3.1.0/lib/Sys/Virt.pm 2017-01-19 12:05:32.000000000 +0100 +++ new/Sys-Virt-3.2.0/lib/Sys/Virt.pm 2017-03-07 10:57:08.000000000 +0100 @@ -78,7 +78,7 @@ use Sys::Virt::DomainSnapshot; use Sys::Virt::Stream; -our $VERSION = '3.1.0'; +our $VERSION = '3.2.0'; require XSLoader; XSLoader::load('Sys::Virt', $VERSION); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/perl-Sys-Virt.spec new/Sys-Virt-3.2.0/perl-Sys-Virt.spec --- old/Sys-Virt-3.1.0/perl-Sys-Virt.spec 2017-03-03 17:59:47.000000000 +0100 +++ new/Sys-Virt-3.2.0/perl-Sys-Virt.spec 2017-04-03 15:41:13.000000000 +0200 @@ -1,7 +1,7 @@ # Automatically generated by perl-Sys-Virt.spec.PL Name: perl-Sys-Virt -Version: 3.1.0 +Version: 3.2.0 Release: 1%{?dist}%{?extra_release} Summary: Represent and manage a libvirt hypervisor connection License: GPLv2+ or Artistic diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-3.1.0/t/030-api-coverage.t new/Sys-Virt-3.2.0/t/030-api-coverage.t --- old/Sys-Virt-3.1.0/t/030-api-coverage.t 2017-01-09 18:11:07.000000000 +0100 +++ new/Sys-Virt-3.2.0/t/030-api-coverage.t 2017-04-03 15:25:40.000000000 +0200 @@ -95,6 +95,7 @@ virConnectDomainEventJobCompletedCallback virConnectDomainEventDeviceRemovalFailedCallback virConnectDomainEventMetadataChangeCallback +virConnectDomainEventBlockThresholdCallback virConnectNetworkEventLifecycleCallback ++++++ suse-set-migration-constraints.patch ++++++ --- /var/tmp/diff_new_pack.UElk4P/_old 2017-04-11 09:41:21.069390986 +0200 +++ /var/tmp/diff_new_pack.UElk4P/_new 2017-04-11 09:41:21.069390986 +0200 @@ -2,11 +2,11 @@ References: fate#316614, bsc#859868 -Index: Sys-Virt-3.1.0/Virt.xs +Index: Sys-Virt-3.2.0/Virt.xs =================================================================== ---- Sys-Virt-3.1.0.orig/Virt.xs -+++ Sys-Virt-3.1.0/Virt.xs -@@ -4959,7 +4959,7 @@ _migrate(dom, destcon, newparams, flags= +--- Sys-Virt-3.2.0.orig/Virt.xs ++++ Sys-Virt-3.2.0/Virt.xs +@@ -5006,7 +5006,7 @@ _migrate(dom, destcon, newparams, flags= virTypedParameterPtr params; int nparams; CODE: @@ -15,7 +15,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5022,6 +5022,22 @@ _migrate(dom, destcon, newparams, flags= +@@ -5069,6 +5069,22 @@ _migrate(dom, destcon, newparams, flags= VIR_TYPED_PARAM_FIELD_LENGTH); params[14].type = VIR_TYPED_PARAM_INT; @@ -38,7 +38,7 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -5050,7 +5066,7 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5097,7 +5113,7 @@ _migrate_to_uri(dom, desturi, newparams, virTypedParameterPtr params; int nparams; PPCODE: @@ -47,7 +47,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5113,6 +5129,22 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5160,6 +5176,22 @@ _migrate_to_uri(dom, desturi, newparams, VIR_TYPED_PARAM_FIELD_LENGTH); params[14].type = VIR_TYPED_PARAM_INT; @@ -70,7 +70,7 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -8177,6 +8209,10 @@ BOOT: +@@ -8237,6 +8269,10 @@ BOOT: REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PERSIST_XML, MIGRATE_PARAM_PERSIST_XML); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL, MIGRATE_PARAM_AUTO_CONVERGE_INITIAL); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT, MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT); @@ -81,10 +81,10 @@ REGISTER_CONSTANT(VIR_DOMAIN_XML_SECURE, XML_SECURE); REGISTER_CONSTANT(VIR_DOMAIN_XML_INACTIVE, XML_INACTIVE); -Index: Sys-Virt-3.1.0/lib/Sys/Virt/Domain.pm +Index: Sys-Virt-3.2.0/lib/Sys/Virt/Domain.pm =================================================================== ---- Sys-Virt-3.1.0.orig/lib/Sys/Virt/Domain.pm -+++ Sys-Virt-3.1.0/lib/Sys/Virt/Domain.pm +--- Sys-Virt-3.2.0.orig/lib/Sys/Virt/Domain.pm ++++ Sys-Virt-3.2.0/lib/Sys/Virt/Domain.pm @@ -1101,6 +1101,22 @@ The initial percentage to throttle guest The additional percentage step size to throttle guest vCPUs if progress is not made