# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1204148971 28800
# Node ID 224ad7217cef6235bccb3377b9b86114ed61d6ae
# Parent d99c12afe401d8d38ce08ed2ce305bf6766889fe
Add VirtualSystemSnapshotService{,Capabilities} build support
Changes:
- Added HostSystem provider lib to VSSS for instance functions
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r d99c12afe401 -r 224ad7217cef Makefile.am
--- a/Makefile.am Wed Feb 27 13:49:31 2008 -0800
+++ b/Makefile.am Wed Feb 27 13:49:31 2008 -0800
@@ -37,7 +37,9 @@ MOFS = \
schema/ElementSettingData.mof \
schema/VSMigrationCapabilities.mof \
schema/VSMigrationService.mof \
- schema/VSMigrationSettingData.mof
+ schema/VSMigrationSettingData.mof \
+ schema/VirtualSystemSnapshotService.mof \
+ schema/VirtualSystemSnapshotServiceCapabilities.mof
INTEROP_MOFS = \
schema/ComputerSystem.mof \
@@ -81,7 +83,9 @@ REGS = \
schema/VSMigrationCapabilities.registration \
schema/VSMigrationService.registration \
schema/ElementConformsToProfile.registration \
- schema/VSMigrationSettingData.registration
+ schema/VSMigrationSettingData.registration \
+ schema/VirtualSystemSnapshotService.registration \
+ schema/VirtualSystemSnapshotServiceCapabilities.registration
INTEROP_REGS = \
schema/RegisteredProfile.registration \
diff -r d99c12afe401 -r 224ad7217cef schema/VirtualSystemSnapshotService.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotService.mof Wed Feb 27 13:49:31 2008 -0800
@@ -0,0 +1,7 @@
+// Copyright IBM Corp. 2008
+
+[Description ( "Snapshot types are as follows: "
+ "32768: Memory-only snapshot (suspend, resume, keep image)"
+ "32769: Memory-only, terminal (domain is offline after op)")]
+class Xen_VirtualSystemSnapshotService : CIM_VirtualSystemSnapshotService { };
+class KVM_VirtualSystemSnapshotService : CIM_VirtualSystemSnapshotService { };
diff -r d99c12afe401 -r 224ad7217cef schema/VirtualSystemSnapshotService.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotService.registration Wed Feb 27 13:49:31 2008 -0800
@@ -0,0 +1,4 @@
+# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_VirtualSystemSnapshotService root/virt Virt_VirtualSystemSnapshotService
Virt_VirtualSystemSnapshotService method instance
+KVM_VirtualSystemSnapshotService root/virt Virt_VirtualSystemSnapshotService
Virt_VirtualSystemSnapshotService method instance
diff -r d99c12afe401 -r 224ad7217cef schema/VirtualSystemSnapshotServiceCapabilities.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotServiceCapabilities.mof Wed Feb 27 13:49:31 2008 -0800
@@ -0,0 +1,4 @@
+// Copyright IBM Corp. 2008
+
+class Xen_VirtualSystemSnapshotServiceCapabilities :
CIM_VirtualSystemSnapshotServiceCapabilities {};
+class KVM_VirtualSystemSnapshotServiceCapabilities :
CIM_VirtualSystemSnapshotServiceCapabilities {};
diff -r d99c12afe401 -r 224ad7217cef
schema/VirtualSystemSnapshotServiceCapabilities.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotServiceCapabilities.registration Wed Feb 27 13:49:31
2008 -0800
@@ -0,0 +1,4 @@
+# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_VirtualSystemSnapshotServiceCapabilities root/virt
Virt_VirtualSystemSnapshotServiceCapabilities
Virt_VirtualSystemSnapshotServiceCapabilities instance
+KVM_VirtualSystemSnapshotServiceCapabilities root/virt
Virt_VirtualSystemSnapshotServiceCapabilities
Virt_VirtualSystemSnapshotServiceCapabilities instance
diff -r d99c12afe401 -r 224ad7217cef src/Makefile.am
--- a/src/Makefile.am Wed Feb 27 13:49:31 2008 -0800
+++ b/src/Makefile.am Wed Feb 27 13:49:31 2008 -0800
@@ -17,7 +17,9 @@ noinst_HEADERS = profiles.h svpc_types.h
Virt_VSSD.h \
Virt_VSMigrationCapabilities.h \
Virt_VSMigrationService.h \
- Virt_AllocationCapabilities.h
+ Virt_AllocationCapabilities.h \
+ Virt_VirtualSystemSnapshotService.h \
+ Virt_VirtualSystemSnapshotServiceCapabilities.h
XKUADD = $(top_builddir)/libxkutil/libxkutil.la
@@ -56,7 +58,9 @@ provider_LTLIBRARIES = libVirt_ComputerS
libVirt_ElementSettingData.la \
libVirt_VSMigrationCapabilities.la \
libVirt_VSMigrationService.la \
- libVirt_VSMigrationSettingData.la
+ libVirt_VSMigrationSettingData.la \
+ libVirt_VirtualSystemSnapshotService.la \
+ libVirt_VirtualSystemSnapshotServiceCapabilities.la
libVirt_ComputerSystem_la_SOURCES = Virt_ComputerSystem.c
libVirt_Device_la_SOURCES = Virt_Device.c
@@ -161,3 +165,10 @@ libVirt_VSMigrationService_la_LIBADD = -
libVirt_VSMigrationSettingData_la_SOURCES = Virt_VSMigrationSettingData.c
+libVirt_VirtualSystemSnapshotService_la_DEPENDENCIES = libVirt_HostSystem.la
+libVirt_VirtualSystemSnapshotService_la_SOURCES = Virt_VirtualSystemSnapshotService.c
+libVirt_VirtualSystemSnapshotService_la_LIBADD = -lVirt_HostSystem
+
+libVirt_VirtualSystemSnapshotServiceCapabilities_la_DEPENDENCIES =
+libVirt_VirtualSystemSnapshotServiceCapabilities_la_SOURCES =
Virt_VirtualSystemSnapshotServiceCapabilities.c
+libVirt_VirtualSystemSnapshotServiceCapabilities_la_LIBADD =