Hello community,
here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory checked in at 2013-03-14 15:00:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old)
and /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sys-Virt", Maintainer is "OHering@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes 2012-12-10 14:25:30.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new/perl-Sys-Virt.changes 2013-03-14 15:00:15.000000000 +0100
@@ -1,0 +2,30 @@
+Wed Mar 6 12:35:20 MST 2013 - jfehlig@suse.com
+
+- Update to 1.0.3
+ - Add all new APIs and constants in libvirt 1.0.3
+
+-------------------------------------------------------------------
+Wed Feb 27 08:42:57 MST 2013 - jfehlig@suse.com
+
+- Update to 1.0.2
+ - Add all new APIs and constants in libvirt 1.0.2
+
+-------------------------------------------------------------------
+Tue Feb 26 14:41:50 MST 2013 - jfehlig@suse.com
+
+- Update to 1.0.1
+ - Add all new APIs and constants in libvirt 1.0.1
+ - Fix typo preventing listing of NWFilters
+ - Add more testing of object list APIs
+ - Fix some incorrect error handling tests in binding
+ - Remove bogus compare < 0 for size_t variables
+ - Fix const-ness of functions for populating constants
+ - Add option to turn on more GCC warning flags
+ - Fix typos in POD docs
+
+-------------------------------------------------------------------
+Sun Feb 24 18:11:07 CET 2013 - ohering@suse.de
+
+- BuildRequire: perl-macros only in sles11 builds to fix build in 11.4
+
+-------------------------------------------------------------------
Old:
----
Sys-Virt-1.0.0.tar.gz
New:
----
Sys-Virt-1.0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Sys-Virt.spec ++++++
--- /var/tmp/diff_new_pack.jmcJus/_old 2013-03-14 15:00:17.000000000 +0100
+++ /var/tmp/diff_new_pack.jmcJus/_new 2013-03-14 15:00:17.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Sys-Virt
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
#
-
Name: perl-Sys-Virt
-Version: 1.0.0
+Version: 1.0.3
Release: 0
%define cpan_name Sys-Virt
Summary: Represent and manage a libvirt hypervisor connection
@@ -26,8 +25,10 @@
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Sys-Virt/
Source: %{cpan_name}-%{version}.tar.gz
-BuildRequires: libvirt-devel >= 0.9.10
+BuildRequires: libvirt-devel >= %{version}
+%if %suse_version < 1140
BuildRequires: perl-macros
+%endif
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
++++++ Sys-Virt-1.0.0.tar.gz -> Sys-Virt-1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/Changes new/Sys-Virt-1.0.3/Changes
--- old/Sys-Virt-1.0.0/Changes 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/Changes 2013-03-05 19:17:17.000000000 +0100
@@ -1,5 +1,24 @@
Revision history for perl module Sys::Virt
+1.0.3 2013-03-05
+
+ - Add all new APIs in libvirt 1.0.3
+
+1.0.2 2013-02-27
+
+ - Add all new APIs in libvirt 1.0.2
+
+1.0.1 2013-02-26
+
+ - Add all new APIs and constants in libvirt 1.0.1
+ - Fix typo preventing listing of NWFilters
+ - Add more testing of object list APIs
+ - Fix some incorrect error handling tests in binding
+ - Remove bogus compare < 0 for size_t variables
+ - Fix const-ness of functions for populating constants
+ - Add option to turn on more GCC warning flags
+ - Fix typos in POD docs
+
1.0.0 2012-11-16
- Add all new APIs and constants in libvirt 1.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/META.yml new/Sys-Virt-1.0.3/META.yml
--- old/Sys-Virt-1.0.0/META.yml 2012-11-16 15:23:08.000000000 +0100
+++ new/Sys-Virt-1.0.3/META.yml 2013-03-05 19:17:32.000000000 +0100
@@ -1,7 +1,7 @@
--- #YAML:1.0
name: Sys-Virt
abstract: Extension for the libvirt library
-version: 1.0.0
+version: 1.0.3
author:
- Daniel P. Berrange
license: perl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/MYMETA.json new/Sys-Virt-1.0.3/MYMETA.json
--- old/Sys-Virt-1.0.0/MYMETA.json 2012-11-16 15:22:57.000000000 +0100
+++ new/Sys-Virt-1.0.3/MYMETA.json 2013-03-05 19:17:20.000000000 +0100
@@ -4,7 +4,7 @@
"Daniel Berrange "
],
"dynamic_config" : 0,
- "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921",
+ "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921",
"license" : [
"unknown"
],
@@ -42,5 +42,5 @@
}
},
"release_status" : "stable",
- "version" : "v1.0.0"
+ "version" : "v1.0.3"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/MYMETA.yml new/Sys-Virt-1.0.3/MYMETA.yml
--- old/Sys-Virt-1.0.0/MYMETA.yml 2012-11-16 15:22:57.000000000 +0100
+++ new/Sys-Virt-1.0.3/MYMETA.yml 2013-03-05 19:17:20.000000000 +0100
@@ -7,7 +7,7 @@
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 0
-generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921'
+generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +24,4 @@
Test::Pod::Coverage: 0
Time::HiRes: 0
XML::XPath: 0
-version: v1.0.0
+version: v1.0.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/Makefile.PL new/Sys-Virt-1.0.3/Makefile.PL
--- old/Sys-Virt-1.0.0/Makefile.PL 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/Makefile.PL 2013-03-05 19:17:17.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 = "1.0.0";
+my $libvirtver = "1.0.3";
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;
@@ -11,6 +11,45 @@
my $LIBVIRT_LIBS = `pkg-config --libs libvirt`;
my $LIBVIRT_CFLAGS = `pkg-config --cflags libvirt`;
+my $gccflags = "-W -Waddress -Wall -Warray-bounds -Wattributes \\
+ -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align \\
+ -Wchar-subscripts -Wclobbered -Wcomment -Wcomments \\
+ -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations \\
+ -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion \\
+ -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul \\
+ -Wformat-extra-args -Wformat-security -Wformat-y2k \\
+ -Wformat-zero-length -Wformat=2 -Wfree-nonheap-object \\
+ -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration \\
+ -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast \\
+ -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init \\
+ -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces \\
+ -Wmissing-declarations -Wmissing-field-initializers \\
+ -Wmissing-format-attribute -Wmissing-include-dirs \\
+ -Wmissing-noreturn -Wmissing-parameter-type \\
+ -Wmudflap -Wmultichar -Wnarrowing -Wnonnull \\
+ -Wnormalized=nfc -Wold-style-declaration -Wold-style-definition \\
+ -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses \\
+ -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas \\
+ -Wreturn-type -Wsequence-point -Wshadow -Wstrict-aliasing \\
+ -Wstrict-prototypes -Wsuggest-attribute=const \\
+ -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch \\
+ -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized \\
+ -Wunknown-pragmas -Wunused -Wunused-but-set-parameter \\
+ -Wunused-but-set-variable -Wunused-function -Wunused-label \\
+ -Wunused-local-typedefs -Wno-unused-parameter -Wunused-result \\
+ -Wunused-value -Wunused-variable -Wvariadic-macros \\
+ -Wvector-operation-performance -Wvolatile-register-var \\
+ -Wwrite-strings -Wno-sign-compare -Wjump-misses-init \\
+ -Wno-format-nonliteral -Wframe-larger-than=8192 \\
+ -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Werror";
+
+my $cflags;
+if ($ENV{TEST_MAINTAINER}) {
+ $cflags = $gccflags;
+} else {
+ $cflags = "-Wall";
+}
+
WriteMakefile(
'NAME' => 'Sys::Virt',
'VERSION_FROM' => 'lib/Sys/Virt.pm',
@@ -24,7 +63,7 @@
},
'AUTHOR' => 'Daniel Berrange ',
'LIBS' => [$LIBVIRT_LIBS],
- 'INC' => "-Wall $LIBVIRT_CFLAGS",
+ 'INC' => "$cflags $LIBVIRT_CFLAGS",
'depend' => {
Sys-Virt.spec => '$(VERSION_FROM)',
Makefile => '$(VERSION_FROM)',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/README new/Sys-Virt-1.0.3/README
--- old/Sys-Virt-1.0.0/README 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/README 2013-03-05 19:17:17.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 1.0.0
+The current minimum required version of libvirt is 1.0.3
-- End
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/Virt.xs new/Sys-Virt-1.0.3/Virt.xs
--- old/Sys-Virt-1.0.0/Virt.xs 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/Virt.xs 2013-03-05 19:17:17.000000000 +0100
@@ -31,7 +31,7 @@
* we serialize to/from strings on these platforms
*/
-long long
+static long long
virt_SvIVll(SV *sv) {
#ifdef USE_64_BIT_ALL
return SvIV(sv);
@@ -41,7 +41,7 @@
}
-unsigned long long
+static unsigned long long
virt_SvIVull(SV *sv) {
#ifdef USE_64_BIT_ALL
return SvIV(sv);
@@ -56,7 +56,7 @@
#endif
-SV *
+static SV *
virt_newSVll(long long val) {
#ifdef USE_64_BIT_ALL
return newSViv(val);
@@ -73,7 +73,7 @@
#define PRIu64 "llu"
#endif
-SV *
+static SV *
virt_newSVull(unsigned long long val) {
#ifdef USE_64_BIT_ALL
return newSVuv(val);
@@ -87,12 +87,13 @@
-void ignoreVirErrorFunc(void * userData, virErrorPtr error) {
+static void
+ignoreVirErrorFunc(void * userData, virErrorPtr error) {
/* Do nothing */
}
-SV *
+static SV *
_sv_from_error(virErrorPtr error)
{
HV *hv;
@@ -109,7 +110,7 @@
}
-void
+static void
_croak_error(void)
{
virErrorPtr error = virGetLastError();
@@ -122,8 +123,8 @@
}
-void
-_populate_constant(HV *stash, char *name, int val)
+static void
+_populate_constant(HV *stash, const char *name, int val)
{
SV *valsv;
@@ -133,8 +134,8 @@
}
-void
-_populate_constant_str(HV *stash, char *name, const char *value)
+static void
+_populate_constant_str(HV *stash, const char *name, const char *value)
{
SV *valsv;
@@ -143,8 +144,8 @@
}
-void
-_populate_constant_ull(HV *stash, char *name, unsigned long long val)
+static void
+_populate_constant_ull(HV *stash, const char *name, unsigned long long val)
{
SV *valsv;
@@ -2014,7 +2015,7 @@
EXTEND(SP, nnwfilter);
for (i = 0 ; i < nnwfilter ; i++) {
nwfilterrv = sv_newmortal();
- sv_setref_pv(nwfilterrv, "Sys::Virt::NWFilters", nwfilters[i]);
+ sv_setref_pv(nwfilterrv, "Sys::Virt::NWFilter", nwfilters[i]);
PUSHs(nwfilterrv);
}
free(nwfilters);
@@ -2972,6 +2973,22 @@
void
+open_channel(dom, st, devname, flags=0)
+ virDomainPtr dom;
+ virStreamPtr st;
+ SV *devname;
+ unsigned int flags;
+ PREINIT:
+ const char *devnamestr = NULL;
+ PPCODE:
+ if (SvOK(devname))
+ devnamestr = SvPV_nolen(devname);
+
+ if (virDomainOpenChannel(dom, devnamestr, st, flags) < 0)
+ _croak_error();
+
+
+void
open_graphics(dom, idx, fd, flags=0)
virDomainPtr dom;
unsigned int idx;
@@ -2982,15 +2999,21 @@
_croak_error();
-void
+SV *
screenshot(dom, st, screen, flags=0)
virDomainPtr dom;
virStreamPtr st;
unsigned int screen;
unsigned int flags;
- PPCODE:
- if (virDomainScreenshot(dom, st, screen, flags) < 0)
+ PREINIT:
+ char *mimetype;
+ CODE:
+ if (!(mimetype = virDomainScreenshot(dom, st, screen, flags)))
_croak_error();
+ RETVAL = newSVpv(mimetype, 0);
+ free(mimetype);
+ OUTPUT:
+ RETVAL
HV *
@@ -3039,6 +3062,31 @@
void
+get_job_stats(dom, flags=0)
+ virDomainPtr dom;
+ unsigned int flags;
+ PREINIT:
+ int type;
+ virTypedParameter *params;
+ int nparams;
+ HV *paramsHv;
+ SV *typeSv;
+ PPCODE:
+ if (virDomainGetJobStats(dom, &type, ¶ms, &nparams, flags) < 0) {
+ Safefree(params);
+ _croak_error();
+ }
+
+ typeSv = newSViv(type);
+ paramsHv = vir_typed_param_to_hv(params, nparams);
+ Safefree(params);
+
+ EXTEND(SP, 2);
+ PUSHs(newRV_noinc((SV*)typeSv));
+ PUSHs(newRV_noinc((SV*)paramsHv));
+
+
+void
abort_job(dom)
virDomainPtr dom;
PPCODE:
@@ -3725,6 +3773,34 @@
void
+migrate_set_compression_cache(dom, cacheSizeSv, flags=0)
+ virDomainPtr dom;
+ SV *cacheSizeSv;
+ unsigned int flags;
+ PREINIT:
+ unsigned long long cacheSize;
+ PPCODE:
+ cacheSize = virt_SvIVull(cacheSizeSv);
+ if (virDomainMigrateSetCompressionCache(dom, cacheSize, flags) < 0)
+ _croak_error();
+
+
+SV *
+migrate_get_compression_cache(dom, flags=0)
+ virDomainPtr dom;
+ unsigned int flags;
+ PREINIT:
+ unsigned long long cacheSize;
+ CODE:
+ if (virDomainMigrateGetCompressionCache(dom, &cacheSize, flags) < 0)
+ _croak_error();
+
+ RETVAL = virt_newSVull(cacheSize);
+ OUTPUT:
+ RETVAL
+
+
+void
attach_device(dom, xml, flags=0)
virDomainPtr dom;
const char *xml;
@@ -4165,7 +4241,7 @@
PREINIT:
virVcpuInfoPtr info;
unsigned char *cpumaps;
- int maplen;
+ size_t maplen;
virNodeInfo nodeinfo;
virDomainInfo dominfo;
int nvCpus;
@@ -4342,13 +4418,41 @@
virDomainPtr dom;
unsigned int flags;
CODE:
- if ((RETVAL = virDomainSnapshotCurrent(dom, flags)) < 0)
+ if (!(RETVAL = virDomainSnapshotCurrent(dom, flags)))
_croak_error();
OUTPUT:
RETVAL
void
+fs_trim(dom, mountPoint, minimumsv, flags=0)
+ virDomainPtr dom;
+ const char *mountPoint;
+ SV *minimumsv;
+ unsigned int flags;
+ PREINIT:
+ unsigned long long minimum;
+ PPCODE:
+ minimum = virt_SvIVull(minimumsv);
+ if (virDomainFSTrim(dom, mountPoint, minimum, flags) < 0)
+ _croak_error();
+
+
+void
+send_process_signal(dom, pidsv, signum, flags=0)
+ virDomainPtr dom;
+ SV *pidsv;
+ unsigned int signum;
+ unsigned int flags;
+ PREINIT:
+ long long pid;
+ PPCODE:
+ pid = virt_SvIVull(pidsv);
+ if (virDomainSendProcessSignal(dom, pid, signum, flags) < 0)
+ _croak_error();
+
+
+void
destroy(dom_rv, flags=0)
SV *dom_rv;
unsigned int flags;
@@ -5143,6 +5247,19 @@
RETVAL
+virNodeDevicePtr
+_lookup_scsihost_by_wwn(con, wwnn, wwpn, flags=0)
+ virConnectPtr con;
+ const char *wwnn;
+ const char *wwpn;
+ unsigned int flags;
+ CODE:
+ if (!(RETVAL = virNodeDeviceLookupSCSIHostByWWN(con, wwnn, wwpn, flags)))
+ _croak_error();
+ OUTPUT:
+ RETVAL
+
+
const char *
get_name(dev)
virNodeDevicePtr dev;
@@ -6001,7 +6118,7 @@
CODE:
if (SvOK(data)) {
rawdata = SvPV(data, len);
- if (nbytes < 0 || nbytes > len)
+ if (nbytes > len)
nbytes = len;
} else {
rawdata = "";
@@ -6273,6 +6390,7 @@
REGISTER_CONSTANT(VIR_DOMAIN_PAUSED_WATCHDOG, STATE_PAUSED_WATCHDOG);
REGISTER_CONSTANT(VIR_DOMAIN_PAUSED_FROM_SNAPSHOT, STATE_PAUSED_FROM_SNAPSHOT);
REGISTER_CONSTANT(VIR_DOMAIN_PAUSED_SHUTTING_DOWN, STATE_PAUSED_SHUTTING_DOWN);
+ REGISTER_CONSTANT(VIR_DOMAIN_PAUSED_SNAPSHOT, STATE_PAUSED_SNAPSHOT);
REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_UNKNOWN, STATE_SHUTDOWN_UNKNOWN);
REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_USER, STATE_SHUTDOWN_USER);
@@ -6297,6 +6415,8 @@
REGISTER_CONSTANT(VIR_DOMAIN_CONSOLE_FORCE, OPEN_CONSOLE_FORCE);
REGISTER_CONSTANT(VIR_DOMAIN_CONSOLE_SAFE, OPEN_CONSOLE_SAFE);
+ REGISTER_CONSTANT(VIR_DOMAIN_CHANNEL_FORCE, OPEN_CHANNEL_FORCE);
+
REGISTER_CONSTANT_STR(VIR_DOMAIN_SCHEDULER_EMULATOR_PERIOD, SCHEDULER_EMULATOR_PERIOD);
REGISTER_CONSTANT_STR(VIR_DOMAIN_SCHEDULER_EMULATOR_QUOTA, SCHEDULER_EMULATOR_QUOTA);
@@ -6326,6 +6446,8 @@
REGISTER_CONSTANT(VIR_MIGRATE_NON_SHARED_INC, MIGRATE_NON_SHARED_INC);
REGISTER_CONSTANT(VIR_MIGRATE_CHANGE_PROTECTION, MIGRATE_CHANGE_PROTECTION);
REGISTER_CONSTANT(VIR_MIGRATE_UNSAFE, MIGRATE_UNSAFE);
+ REGISTER_CONSTANT(VIR_MIGRATE_OFFLINE, MIGRATE_OFFLINE);
+ REGISTER_CONSTANT(VIR_MIGRATE_COMPRESSED, MIGRATE_COMPRESSED);
REGISTER_CONSTANT(VIR_DOMAIN_XML_SECURE, XML_SECURE);
@@ -6382,6 +6504,7 @@
REGISTER_CONSTANT(VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG, EVENT_SUSPENDED_WATCHDOG);
REGISTER_CONSTANT(VIR_DOMAIN_EVENT_SUSPENDED_RESTORED, EVENT_SUSPENDED_RESTORED);
REGISTER_CONSTANT(VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT, EVENT_SUSPENDED_FROM_SNAPSHOT);
+ REGISTER_CONSTANT(VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR, EVENT_SUSPENDED_API_ERROR);
REGISTER_CONSTANT(VIR_DOMAIN_EVENT_RESUMED_UNPAUSED, EVENT_RESUMED_UNPAUSED);
REGISTER_CONSTANT(VIR_DOMAIN_EVENT_RESUMED_MIGRATED, EVENT_RESUMED_MIGRATED);
@@ -6430,6 +6553,27 @@
REGISTER_CONSTANT(VIR_DOMAIN_JOB_FAILED, JOB_FAILED);
REGISTER_CONSTANT(VIR_DOMAIN_JOB_CANCELLED, JOB_CANCELLED);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_COMPRESSION_BYTES, JOB_COMPRESSION_BYTES);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_COMPRESSION_CACHE, JOB_COMPRESSION_CACHE);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_COMPRESSION_CACHE_MISSES, JOB_COMPRESSION_CACHE_MISSES);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_COMPRESSION_OVERFLOW, JOB_COMPRESSION_OVERFLOW);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_COMPRESSION_PAGES, JOB_COMPRESSION_PAGES);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DATA_PROCESSED, JOB_DATA_PROCESSED);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DATA_REMAINING, JOB_DATA_REMAINING);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DATA_TOTAL, JOB_DATA_TOTAL);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DISK_PROCESSED, JOB_DISK_PROCESSED);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DISK_REMAINING, JOB_DISK_REMAINING);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DISK_TOTAL, JOB_DISK_TOTAL);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_DOWNTIME, JOB_DOWNTIME);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_CONSTANT, JOB_MEMORY_CONSTANT);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_NORMAL, JOB_MEMORY_NORMAL);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_NORMAL_BYTES, JOB_MEMORY_NORMAL_BYTES);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_PROCESSED, JOB_MEMORY_PROCESSED);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_REMAINING, JOB_MEMORY_REMAINING);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_MEMORY_TOTAL, JOB_MEMORY_TOTAL);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_TIME_ELAPSED, JOB_TIME_ELAPSED);
+ REGISTER_CONSTANT_STR(VIR_DOMAIN_JOB_TIME_REMAINING, JOB_TIME_REMAINING);
+
REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN, BLOCK_JOB_TYPE_UNKNOWN);
REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, BLOCK_JOB_TYPE_PULL);
REGISTER_CONSTANT(VIR_DOMAIN_BLOCK_JOB_TYPE_COPY, BLOCK_JOB_TYPE_COPY);
@@ -6548,12 +6692,87 @@
REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_DEFAULT, SHUTDOWN_DEFAULT);
REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN, SHUTDOWN_ACPI_POWER_BTN);
REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_GUEST_AGENT, SHUTDOWN_GUEST_AGENT);
+ REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_INITCTL, SHUTDOWN_INITCTL);
+ REGISTER_CONSTANT(VIR_DOMAIN_SHUTDOWN_SIGNAL, SHUTDOWN_SIGNAL);
REGISTER_CONSTANT(VIR_DOMAIN_REBOOT_DEFAULT, REBOOT_DEFAULT);
REGISTER_CONSTANT(VIR_DOMAIN_REBOOT_ACPI_POWER_BTN, REBOOT_ACPI_POWER_BTN);
REGISTER_CONSTANT(VIR_DOMAIN_REBOOT_GUEST_AGENT, REBOOT_GUEST_AGENT);
+ REGISTER_CONSTANT(VIR_DOMAIN_REBOOT_INITCTL, REBOOT_INITCTL);
+ REGISTER_CONSTANT(VIR_DOMAIN_REBOOT_SIGNAL, REBOOT_SIGNAL);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_NOP, PROCESS_SIGNAL_NOP);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_HUP, PROCESS_SIGNAL_HUP);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_INT, PROCESS_SIGNAL_INT);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_QUIT, PROCESS_SIGNAL_QUIT);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_ILL, PROCESS_SIGNAL_ILL);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_TRAP, PROCESS_SIGNAL_TRAP);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_ABRT, PROCESS_SIGNAL_ABRT);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_BUS, PROCESS_SIGNAL_BUS);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_FPE, PROCESS_SIGNAL_FPE);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_KILL, PROCESS_SIGNAL_KILL);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_USR1, PROCESS_SIGNAL_USR1);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_SEGV, PROCESS_SIGNAL_SEGV);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_USR2, PROCESS_SIGNAL_USR2);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_PIPE, PROCESS_SIGNAL_PIPE);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_ALRM, PROCESS_SIGNAL_ALRM);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_TERM, PROCESS_SIGNAL_TERM);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_STKFLT, PROCESS_SIGNAL_STKFLT);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_CHLD, PROCESS_SIGNAL_CHLD);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_CONT, PROCESS_SIGNAL_CONT);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_STOP, PROCESS_SIGNAL_STOP);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_TSTP, PROCESS_SIGNAL_TSTP);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_TTIN, PROCESS_SIGNAL_TTIN);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_TTOU, PROCESS_SIGNAL_TTOU);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_URG, PROCESS_SIGNAL_URG);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_XCPU, PROCESS_SIGNAL_XCPU);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_XFSZ, PROCESS_SIGNAL_XFSZ);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_VTALRM, PROCESS_SIGNAL_VTALRM);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_PROF, PROCESS_SIGNAL_PROF);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_WINCH, PROCESS_SIGNAL_WINCH);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_POLL, PROCESS_SIGNAL_POLL);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_PWR, PROCESS_SIGNAL_PWR);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_SYS, PROCESS_SIGNAL_SYS);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT0, PROCESS_SIGNAL_RT0);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT1, PROCESS_SIGNAL_RT1);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT2, PROCESS_SIGNAL_RT2);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT3, PROCESS_SIGNAL_RT3);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT4, PROCESS_SIGNAL_RT4);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT5, PROCESS_SIGNAL_RT5);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT6, PROCESS_SIGNAL_RT6);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT7, PROCESS_SIGNAL_RT7);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT8, PROCESS_SIGNAL_RT8);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT9, PROCESS_SIGNAL_RT9);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT10, PROCESS_SIGNAL_RT10);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT11, PROCESS_SIGNAL_RT11);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT12, PROCESS_SIGNAL_RT12);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT13, PROCESS_SIGNAL_RT13);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT14, PROCESS_SIGNAL_RT14);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT15, PROCESS_SIGNAL_RT15);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT16, PROCESS_SIGNAL_RT16);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT17, PROCESS_SIGNAL_RT17);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT18, PROCESS_SIGNAL_RT18);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT19, PROCESS_SIGNAL_RT19);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT20, PROCESS_SIGNAL_RT20);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT21, PROCESS_SIGNAL_RT21);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT22, PROCESS_SIGNAL_RT22);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT23, PROCESS_SIGNAL_RT23);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT24, PROCESS_SIGNAL_RT24);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT25, PROCESS_SIGNAL_RT25);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT26, PROCESS_SIGNAL_RT26);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT27, PROCESS_SIGNAL_RT27);
+
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT28, PROCESS_SIGNAL_RT28);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT29, PROCESS_SIGNAL_RT29);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT30, PROCESS_SIGNAL_RT30);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT31, PROCESS_SIGNAL_RT31);
+ REGISTER_CONSTANT(VIR_DOMAIN_PROCESS_SIGNAL_RT32, PROCESS_SIGNAL_RT32);
REGISTER_CONSTANT(VIR_DOMAIN_DESTROY_DEFAULT, DESTROY_DEFAULT);
REGISTER_CONSTANT(VIR_DOMAIN_DESTROY_GRACEFUL, DESTROY_GRACEFUL);
@@ -6607,6 +6826,7 @@
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT, CREATE_REUSE_EXT);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE, CREATE_QUIESCE);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC, CREATE_ATOMIC);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_CREATE_LIVE, CREATE_LIVE);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_ROOTS, LIST_ROOTS);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS, LIST_DESCENDANTS);
@@ -6614,6 +6834,11 @@
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_LEAVES, LIST_LEAVES);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES, LIST_NO_LEAVES);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA, LIST_NO_METADATA);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_ACTIVE, LIST_ACTIVE);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_INACTIVE, LIST_INACTIVE);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL, LIST_EXTERNAL);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL, LIST_INTERNAL);
+ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY, LIST_DISK_ONLY);
REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING, REVERT_RUNNING);
@@ -6735,6 +6960,8 @@
REGISTER_CONSTANT(VIR_STORAGE_VOL_RESIZE_DELTA, RESIZE_DELTA);
REGISTER_CONSTANT(VIR_STORAGE_VOL_RESIZE_SHRINK, RESIZE_SHRINK);
+ REGISTER_CONSTANT(VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA, CREATE_PREALLOC_METADATA);
+
stash = gv_stashpv( "Sys::Virt::Secret", TRUE );
REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_NONE, USAGE_TYPE_NONE);
@@ -6816,6 +7043,7 @@
REGISTER_CONSTANT(VIR_FROM_PARALLELS, FROM_PARALLELS);
REGISTER_CONSTANT(VIR_FROM_SSH, FROM_SSH);
REGISTER_CONSTANT(VIR_FROM_LOCKSPACE, FROM_LOCKSPACE);
+ REGISTER_CONSTANT(VIR_FROM_INITCTL, FROM_INITCTL);
REGISTER_CONSTANT(VIR_ERR_OK, ERR_OK);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/Domain.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/Domain.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/Domain.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/Domain.pm 2013-03-05 19:17:17.000000000 +0100
@@ -302,6 +302,10 @@
The guest is paused while domain shutdown takes place
+=item Sys::Virt::Domain::STATE_PAUSED_SNAPSHOT
+
+The guest is paused while a snapshot takes place
+
=item Sys::Virt::Domain::STATE_RUNNING_BOOTED
The guest is running after being booted
@@ -868,6 +872,18 @@
The returned <bandwidth> value is measured in MB/second.
The C<$flags> parameter is currently unused and defaults to zero.
+=item $dom->migrate_set_compression_cache($cacheSize, $flags)
+
+Set the maximum allowed compression cache size during migration of
+the guest. The C<cacheSize> parameter is measured in bytes.
+The C<$flags> parameter is currently unused and defaults to zero.
+
+=item $cacheSize = $dom->migrate_get_compression_cache($flag)
+
+Get the maximum allowed compression cache size during migration of
+the guest. The returned <bandwidth> value is measured in bytes.
+The C<$flags> parameter is currently unused and defaults to zero.
+
=item $dom->inject_nmi($flags)
Trigger an NMI in the guest virtual machine. The C<$flags> parameter
@@ -882,6 +898,14 @@
bi-directional communication with the console. C<$flags> is
currently unused, defaulting to 0.
+=item $dom->open_channel($st, $devname, $flags)
+
+Open the text console for a data channel device identified by
+C<$devname>, connecting it to the stream C<$st>. C<$st> must
+be a CSys::Virt::Stream object used for bi-directional
+communication with the channel. C<$flags> is currently unused,
+defaulting to 0.
+
=item $dom->open_graphics($idx, $fd, $flags)
Open the graphics console for a guest, identified by C<$idx>,
@@ -890,13 +914,13 @@
the constants listed at the end of this document, and defaults
to 0.
-=item $dom->screenshot($st, $screen, $flags)
+=item my $mimetype = $dom->screenshot($st, $screen, $flags)
Capture a screenshot of the virtual machine's monitor. The C<$screen>
parameter controls which monitor is captured when using a multi-head
or multi-card configuration. C<$st> must be a CSys::Virt::Stream
object from which the data can be read. C<$flags> is currently unused
-and defaults to 0.
+and defaults to 0. The mimetype of the screenshot is returned
=item @vcpuinfo = $dom->get_vcpu_info()
@@ -999,6 +1023,108 @@
=back
+=item my ($type, $stats) = $dom->get_job_stats()
+
+Returns an array summarising the execution state of the
+background job. The C<$type> value is one of the JOB TYPE
+constants listed later in this document. The C<$stats>
+value is a hash reference, whose elements are one of the
+following constants.
+
+=over 4
+
+=item type
+
+The type of job, one of the JOB TYPE constants listed later in
+this document.
+
+=item Sys::Virt::Domain::JOB_TIME_ELAPSED
+
+The elapsed time in milliseconds
+
+=item Sys::Virt::Domain::JOB_TIME_REMAINING
+
+The expected remaining time in milliseconds. Only set if the
+C<type> is JOB_UNBOUNDED.
+
+=item Sys::Virt::Domain::JOB_DATA_TOTAL
+
+The total amount of data expected to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_DATA_PROCESSED
+
+The current amount of data processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_DATA_REMAINING
+
+The expected amount of data remaining to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_MEMORY_TOTAL
+
+The total amount of mem expected to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_MEMORY_PROCESSED
+
+The current amount of mem processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_MEMORY_REMAINING
+
+The expected amount of mem remaining to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_MEMORY_CONSTANT
+
+The number of pages filled with a constant byte which have
+been transferred
+
+=item Sys::Virt::Domain::JOB_MEMORY_NORMAL
+
+The number of pages transferred without any compression
+
+=item Sys::Virt::Domain::JOB_MEMORY_NORMAL_BYTES
+
+The number of bytes transferred without any compression
+
+=item Sys::Virt::Domain::JOB_DISK_TOTAL
+
+The total amount of file expected to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_DISK_PROCESSED
+
+The current amount of file processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_DISK_REMAINING
+
+The expected amount of file remaining to be processed by the job, in bytes.
+
+=item Sys::Virt::Domain::JOB_COMPRESSION_CACHE
+
+The size of the compression cache in bytes
+
+=item Sys::Virt::Domain::JOB_COMPRESSION_BYTES
+
+The number of compressed bytes transferred
+
+=item Sys::Virt::Domain::JOB_COMPRESSION_PAGES
+
+The number of compressed pages transferred
+
+=item Sys::Virt::Domain::JOB_COMPRESSION_CACHE_MISSES
+
+The number of changing pages not in compression cache
+
+=item Sys::Virt::Domain::JOB_COMPRESSION_OVERFLOW
+
+The number of changing pages in the compression cache but sent
+uncompressed since the compressed page was larger than the
+non-compressed page.
+
+=item Sys::Virt::Domain::JOB_DOWNTIME
+
+The number of milliseconds of downtime expected during
+migration switchover.
+
+=back
+
=item $dom->abort_job()
Aborts the currently executing job
@@ -1126,6 +1252,20 @@
1;
+=item $dom->fs_trim($mountPoint, $minimum, $flags=0);
+
+Issue an FS_TRIM command to the device at C<$mountPoint>
+to remove chunks of unused space that are at least
+C<$minimum> bytes in length. C<$flags> is currently
+unused and defaults to zero.
+
+=item $dom->send_process_signal($pid, $signum, $flags=0);
+
+Send the process C<$pid> the signal C<$signum>. The
+C<$signum> value must be one of the constants listed
+later, not a POSIX or Linux signal value. C<$flags>
+is currently unused and defaults to zero.
+
=back
=head1 CONSTANTS
@@ -1351,6 +1491,20 @@
=back
+=head2 OPEN CHANNEL CONSTANTS
+
+The following constants are used when opening a connection
+to the guest channel
+
+=over 4
+
+=item Sys::Virt::Domain::OPEN_CHANNEL_FORCE
+
+Force opening of the channel, disconnecting any other
+open session
+
+=back
+
=head2 XML DUMP OPTIONS
The following constants are used to control the information
@@ -1508,6 +1662,14 @@
Migrate even if the compatibility check indicates the migration
will be unsafe to the guest.
+=item Sys::Virt::Domain::MIGRATE_OFFLINE
+
+Migrate the guest config if the guest is not currently running
+
+=item Sys::Virt::Domain::MIGRATE_COMPRESSED
+
+Enable compression of the migration data stream
+
=back
=head2 UNDEFINE CONSTANTS
@@ -1931,6 +2093,10 @@
The domain has been suspended due to restore from saved state
+=item Sys::Virt::Domain::EVENT_SUSPENDED_API_ERROR
+
+The domain has been suspended due to an API error
+
=back
=item Sys::Virt::Domain::EVENT_UNDEFINED
@@ -2347,6 +2513,14 @@
Shutdown by injecting an ACPI power button press
+=item Sys::Virt::Domain::SHUTDOWN_INITCTL
+
+Shutdown by talking to initctl (containers only)
+
+=item Sys::Virt::Domain::SHUTDOWN_SIGNAL
+
+Shutdown by sending SIGTERM to the init process
+
=back
=head2 REBOOT CONSTANTS
@@ -2368,6 +2542,14 @@
Reboot by injecting an ACPI power button press
+=item Sys::Virt::Domain::REBOOT_INITCTL
+
+Reboot by talking to initctl (containers only)
+
+=item Sys::Virt::Domain::REBOOT_SIGNAL
+
+Reboot by sending SIGHUP to the init process
+
=back
=head2 METADATA CONSTANTS
@@ -2616,6 +2798,276 @@
=back
+=head2 PROCESS SIGNALS
+
+The following constants provide the names of signals
+which can be sent to guest processes. They mostly
+correspond to POSIX signal names.
+
+=over 4
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_NOP
+
+SIGNOP
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_HUP
+
+SIGHUP
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_INT
+
+SIGINT
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_QUIT
+
+SIGQUIT
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_ILL
+
+SIGILL
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_TRAP
+
+SIGTRAP
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_ABRT
+
+SIGABRT
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_BUS
+
+SIGBUS
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_FPE
+
+SIGFPE
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_KILL
+
+SIGKILL
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_USR1
+
+SIGUSR1
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_SEGV
+
+SIGSEGV
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_USR2
+
+SIGUSR2
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_PIPE
+
+SIGPIPE
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_ALRM
+
+SIGALRM
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_TERM
+
+SIGTERM
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_STKFLT
+
+SIGSTKFLT
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_CHLD
+
+SIGCHLD
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_CONT
+
+SIGCONT
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_STOP
+
+SIGSTOP
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_TSTP
+
+SIGTSTP
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_TTIN
+
+SIGTTIN
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_TTOU
+
+SIGTTOU
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_URG
+
+SIGURG
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_XCPU
+
+SIGXCPU
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_XFSZ
+
+SIGXFSZ
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_VTALRM
+
+SIGVTALRM
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_PROF
+
+SIGPROF
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_WINCH
+
+SIGWINCH
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_POLL
+
+SIGPOLL
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_PWR
+
+SIGPWR
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_SYS
+
+SIGSYS
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT0
+
+SIGRT0
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT1
+
+SIGRT1
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT2
+
+SIGRT2
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT3
+
+SIGRT3
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT4
+
+SIGRT4
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT5
+
+SIGRT5
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT6
+
+SIGRT6
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT7
+
+SIGRT7
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT8
+
+SIGRT8
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT9
+
+SIGRT9
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT10
+
+SIGRT10
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT11
+
+SIGRT11
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT12
+
+SIGRT12
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT13
+
+SIGRT13
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT14
+
+SIGRT14
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT15
+
+SIGRT15
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT16
+
+SIGRT16
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT17
+
+SIGRT17
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT18
+
+SIGRT18
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT19
+
+SIGRT19
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT20
+
+SIGRT20
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT21
+
+SIGRT21
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT22
+
+SIGRT22
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT23
+
+SIGRT23
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT24
+
+SIGRT24
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT25
+
+SIGRT25
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT26
+
+SIGRT26
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT27
+
+SIGRT27
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT28
+
+SIGRT28
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT29
+
+SIGRT29
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT30
+
+SIGRT30
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT31
+
+SIGRT31
+
+=item Sys::Virt::Domain::PROCESS_SIGNAL_RT32
+
+SIGRT32
+
+=back
+
=head1 AUTHORS
Daniel P. Berrange
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/DomainSnapshot.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/DomainSnapshot.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/DomainSnapshot.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/DomainSnapshot.pm 2013-03-05 19:17:17.000000000 +0100
@@ -180,6 +180,10 @@
Create multiple disk snapshots atomically
+=item Sys::Virt::DomainSnapshot::CREATE_LIVE
+
+Create snapshot while the guest is running
+
=back
=head2 SNAPSHOT DELETION
@@ -233,6 +237,27 @@
Only list snapshots without metadata
+=item Sys::Virt::DomainSnapshot::LIST_ACTIVE
+
+Only list snapshots taken while the guest was running
+
+=item Sys::Virt::DomainSnapshot::LIST_INACTIVE
+
+Only list snapshots taken while the guest was inactive
+
+=item Sys::Virt::DomainSnapshot::LIST_EXTERNAL
+
+Only list snapshots stored in external disk images
+
+=item Sys::Virt::DomainSnapshot::LIST_INTERNAL
+
+Only list snapshots stored in internal disk images
+
+=item Sys::Virt::DomainSnapshot::LIST_DISK_ONLY
+
+Only list snapshots taken while the guest was running,
+which did not include memory state.
+
=back
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/Error.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/Error.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/Error.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/Error.pm 2013-03-05 19:17:17.000000000 +0100
@@ -342,6 +342,10 @@
The lockspace handling code
+=item Sys::Virt::Error::FROM_INITCTL
+
+The initctl client code
+
=back
=head2 ERROR CODE CONSTANTS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/NodeDevice.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/NodeDevice.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/NodeDevice.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/NodeDevice.pm 2013-03-05 19:17:17.000000000 +0100
@@ -51,6 +51,10 @@
my $self;
if (exists $params{name}) {
$self = Sys::Virt::NodeDevice::_lookup_by_name($con, $params{name});
+ } elsif (exists $params{wwpn}) {
+ $self = Sys::Virt::NodeDevice::_lookup_scsihost_by_wwn($con,
+ $params{wwpn},
+ $params{wwnn});
} elsif (exists $params{xml}) {
$self = Sys::Virt::NodeDevice::_create_xml($con, $params{xml});
} else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/StoragePool.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/StoragePool.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/StoragePool.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/StoragePool.pm 2013-03-05 19:17:17.000000000 +0100
@@ -189,7 +189,7 @@
Return a list of all volume names in this storage pool. The names can
be used with the C method.
-=item my @nets = $pool->list_volumes()
+=item my @vols = $pool->list_volumes()
Return a list of all volumes in the storage pool.
The elements in the returned list are instances of the
@@ -211,16 +211,16 @@
push @volumes, Sys::Virt::StorageVol->_new(pool => $self, name => $name);
};
if ($@) {
- # nada - domain went away before we could look it up
+ # nada - volume went away before we could look it up
};
}
return @volumes;
}
-=item my @volumes = $dom->list_all_volumes($flags)
+=item my @volumes = $pool->list_all_volumes($flags)
-Return a list of all storage volumes associated with this domain.
+Return a list of all storage volumes associated with this pool.
The elements in the returned list are instances of the
LSys::Virt::StorageVol class. The C<$flags> parameter can be
used to filter the list of return storage volumes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt/StorageVol.pm new/Sys-Virt-1.0.3/lib/Sys/Virt/StorageVol.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt/StorageVol.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt/StorageVol.pm 2013-03-05 19:17:17.000000000 +0100
@@ -173,6 +173,19 @@
=back
+=head2 CREATE MODES
+
+The following constants are useful for the C<flags> parameter of
+the C<create> method
+
+=over 4
+
+=item Sys::Virt::StorageVol::CREATE_PREALLOC_METADATA
+
+Preallocate header metadata when creating the volume.
+
+=back
+
=head2 DELETE MODES
The following constants are useful for the C<flags> parameter of
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/lib/Sys/Virt.pm new/Sys-Virt-1.0.3/lib/Sys/Virt.pm
--- old/Sys-Virt-1.0.0/lib/Sys/Virt.pm 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/lib/Sys/Virt.pm 2013-03-05 19:17:17.000000000 +0100
@@ -78,7 +78,7 @@
use Sys::Virt::DomainSnapshot;
use Sys::Virt::Stream;
-our $VERSION = '1.0.0';
+our $VERSION = '1.0.3';
require XSLoader;
XSLoader::load('Sys::Virt', $VERSION);
@@ -839,8 +839,7 @@
Return a list of all nwfilters currently known to the VMM. The elements
in the returned list are instances of the LSys::Virt::NWFilter class.
-The C<$flags> parameter can be used to filter the list of returned
-secrets.
+The C<$flags> parameter is currently unused and defaults to zero.
=item $vmm->define_save_image_xml($file, $dxml, $flags=0)
@@ -1020,6 +1019,25 @@
}
+=item my $dev = $vmm->get_node_device_scsihost_by_wwn($wwnn, $wwpn, $flags=0)
+
+Return the node device which is a SCSI host identified by C<$wwnn> and C<$wwpn>.
+The C<$flags> parameter is unused and defaults to zero. The returned object is
+an instance of the LSys::Virt::NodeDevice class.
+
+=cut
+
+sub get_node_device_scsihost_by_wwn {
+ my $self = shift;
+ my $wwnn = shift;
+ my $wwpn = shift;
+
+ return Sys::Virt::NodeDevice->_new(connection => $self,
+ wwnn => $wwnn,
+ wwpn => $wwpn);
+}
+
+
=item my $iface = $vmm->get_interface_by_name($name)
Return the interface with a name of C<$name>. The returned object is
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/perl-Sys-Virt.spec new/Sys-Virt-1.0.3/perl-Sys-Virt.spec
--- old/Sys-Virt-1.0.0/perl-Sys-Virt.spec 2012-11-16 15:23:08.000000000 +0100
+++ new/Sys-Virt-1.0.3/perl-Sys-Virt.spec 2013-03-05 19:17:33.000000000 +0100
@@ -1,7 +1,7 @@
# Automatically generated by perl-Sys-Virt.spec.PL
Name: perl-Sys-Virt
-Version: 1.0.0
+Version: 1.0.3
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-1.0.0/t/030-api-coverage.t new/Sys-Virt-1.0.3/t/030-api-coverage.t
--- old/Sys-Virt-1.0.0/t/030-api-coverage.t 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/t/030-api-coverage.t 2013-03-05 19:17:17.000000000 +0100
@@ -100,6 +100,24 @@
virConnectCloseFunc
+virTypedParamsAddBoolean
+virTypedParamsAddDouble
+virTypedParamsAddFromString
+virTypedParamsAddInt
+virTypedParamsAddLLong
+virTypedParamsAddString
+virTypedParamsAddUInt
+virTypedParamsAddULLong
+virTypedParamsClear
+virTypedParamsFree
+virTypedParamsGet
+virTypedParamsGetBoolean
+virTypedParamsGetDouble
+virTypedParamsGetInt
+virTypedParamsGetLLong
+virTypedParamsGetString
+virTypedParamsGetUInt
+virTypedParamsGetULLong
);
foreach my $func (sort { $a cmp $b } @functions) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/t/200-domains.t new/Sys-Virt-1.0.3/t/200-domains.t
--- old/Sys-Virt-1.0.0/t/200-domains.t 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/t/200-domains.t 2013-03-05 19:17:17.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 58;
+use Test::More tests => 59;
BEGIN {
use_ok('Sys::Virt');
@@ -22,6 +22,7 @@
is_deeply(\@domids, [1], "domain ids");
my @doms = $conn->list_all_domains();
+isa_ok($doms[0], "Sys::Virt::Domain");
is(int(@doms), 1, "1 active domain");
is($doms[0]->get_id, "1", "domain id matches");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/t/300-networks.t new/Sys-Virt-1.0.3/t/300-networks.t
--- old/Sys-Virt-1.0.0/t/300-networks.t 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/t/300-networks.t 2013-03-05 19:17:17.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 31;
+use Test::More tests => 32;
BEGIN {
use_ok('Sys::Virt');
@@ -22,10 +22,10 @@
is_deeply(\@netnames, ["default"], "network names");
my @nets = $conn->list_all_networks();
+isa_ok($nets[0], "Sys::Virt::Network");
is(int(@nets), 1, "1 active network");
is($nets[0]->get_name, "default", "network name matches");
-
my $net = $conn->get_network_by_name($netnames[0]);
isa_ok($net, "Sys::Virt::Network");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-1.0.0/t/400-storage-pools.t new/Sys-Virt-1.0.3/t/400-storage-pools.t
--- old/Sys-Virt-1.0.0/t/400-storage-pools.t 2012-11-16 15:22:53.000000000 +0100
+++ new/Sys-Virt-1.0.3/t/400-storage-pools.t 2013-03-05 19:17:17.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 31;
+use Test::More tests => 32;
BEGIN {
use_ok('Sys::Virt');
@@ -22,8 +22,9 @@
is_deeply(\@poolnames, ["default-pool"], "storage_pool names");
my @pools = $conn->list_all_storage_pools();
-is(int(@pools), 1, "1 active pools");
-is($pools[0]->get_name, "default-pool", "storage pool name matches");
+isa_ok($pools[0], "Sys::Virt::StoragePool");
+is(int(@pools), 1, "1 active pool");
+is($pools[0]->get_name, "default-pool", "pool name matches");
my $pool = $conn->get_storage_pool_by_name($poolnames[0]);
isa_ok($pool, "Sys::Virt::StoragePool");
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org