# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1204219129 28800
# Node ID 7749dfc6ff5ed79dedaea3d71e99a99a56cc9734
# Parent 553531770279384cfaa2985868bfa64ea03e85ac
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 553531770279 -r 7749dfc6ff5e Makefile.am
--- a/Makefile.am Thu Feb 28 09:18:49 2008 -0800
+++ b/Makefile.am Thu Feb 28 09:18:49 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 553531770279 -r 7749dfc6ff5e schema/VirtualSystemSnapshotService.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotService.mof Thu Feb 28 09:18:49 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 553531770279 -r 7749dfc6ff5e schema/VirtualSystemSnapshotService.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotService.registration Thu Feb 28 09:18:49 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 553531770279 -r 7749dfc6ff5e schema/VirtualSystemSnapshotServiceCapabilities.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotServiceCapabilities.mof Thu Feb 28 09:18:49 2008 -0800
@@ -0,0 +1,4 @@
+// Copyright IBM Corp. 2008
+
+class Xen_VirtualSystemSnapshotServiceCapabilities :
CIM_VirtualSystemSnapshotServiceCapabilities {};
+class KVM_VirtualSystemSnapshotServiceCapabilities :
CIM_VirtualSystemSnapshotServiceCapabilities {};
diff -r 553531770279 -r 7749dfc6ff5e
schema/VirtualSystemSnapshotServiceCapabilities.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VirtualSystemSnapshotServiceCapabilities.registration Thu Feb 28 09:18:49
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 553531770279 -r 7749dfc6ff5e src/Makefile.am
--- a/src/Makefile.am Thu Feb 28 09:18:49 2008 -0800
+++ b/src/Makefile.am Thu Feb 28 09:18:49 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 =