# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196787215 28800
# Node ID 58bd9f06204f69bbdbe3724cf45b845a58dedd4a
# Parent 853bc758cb198acef26fb916fa913108ef50a3f8
Add build support for VirtualSystemMigrationService
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 853bc758cb19 -r 58bd9f06204f Makefile.am
--- a/Makefile.am Tue Dec 04 08:53:35 2007 -0800
+++ b/Makefile.am Tue Dec 04 08:53:35 2007 -0800
@@ -34,7 +34,8 @@ MOFS = \
schema/ElementAllocatedFromPool.mof \
schema/HostedService.mof \
schema/ElementSettingData.mof \
- schema/VSMigrationCapabilities.mof
+ schema/VSMigrationCapabilities.mof \
+ schema/VSMigrationService.mof
INTEROP_MOFS = \
schema/ComputerSystem.mof \
@@ -74,7 +75,8 @@ REGS = \
schema/ElementAllocatedFromPool.registration \
schema/HostedService.registration \
schema/ElementSettingData.registration \
- schema/VSMigrationCapabilities.registration
+ schema/VSMigrationCapabilities.registration \
+ schema/VSMigrationService.registration
INTEROP_REGS = \
schema/RegisteredProfile.registration \
diff -r 853bc758cb19 -r 58bd9f06204f schema/VSMigrationService.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VSMigrationService.mof Tue Dec 04 08:53:35 2007 -0800
@@ -0,0 +1,41 @@
+// Copyright IBM Corp. 2007
+
+// Placeholder definition until schema is available upstream
+
+class CIM_VirtualSystemMigrationService : CIM_Service {
+ uint32 VirtualSystemIsMigratableToHost(
+ [Out]
+ CIM_ConcreteJob REF Job,
+ [In, EmbeddedInstance("CIM_ResourceAllocationSettingData")]
+ string NewResourceSettingData[],
+ [In, EmbeddedInstance("CIM_SettingData")]
+ string MigrationSettingData,
+ [In, EmbeddedInstance("CIM_VirtualSystemSettingData")]
+ string NewSystemSettingData,
+ [In]
+ CIM_ComputerSystem REF ComputerSystem,
+ [In]
+ string DestinationHost);
+
+ uint32 MigrateVirtualSystemToHost(
+ [Out]
+ CIM_ConcreteJob REF Job,
+ [In, EmbeddedInstance("CIM_ResourceAllocationSettingData")]
+ string NewResourceSettingData[],
+ [In, EmbeddedInstance("CIM_SettingData")]
+ string MigrationSettingData,
+ [In, EmbeddedInstance("CIM_VirtualSystemSettingData")]
+ string NewSystemSettingData,
+ [In]
+ CIM_ComputerSystem REF ComputerSystem,
+ [In]
+ string DestinationHost);
+
+};
+
+class Xen_VirtualSystemMigrationService : CIM_VirtualSystemMigrationService {
+};
+
+class KVM_VirtualSystemMigrationService : CIM_VirtualSystemMigrationService {
+};
+
diff -r 853bc758cb19 -r 58bd9f06204f schema/VSMigrationService.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VSMigrationService.registration Tue Dec 04 08:53:35 2007 -0800
@@ -0,0 +1,4 @@
+# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_VirtualSystemMigrationService root/virt Virt_VSMigrationService
Virt_VSMigrationService instance method
+KVM_VirtualSystemMigrationService root/virt Virt_VSMigrationService
Virt_VSMigrationService instance method
\ No newline at end of file
diff -r 853bc758cb19 -r 58bd9f06204f src/Makefile.am
--- a/src/Makefile.am Tue Dec 04 08:53:35 2007 -0800
+++ b/src/Makefile.am Tue Dec 04 08:53:35 2007 -0800
@@ -51,7 +51,8 @@ provider_LTLIBRARIES = libVirt_ComputerS
libVirt_ElementAllocatedFromPool.la \
libVirt_HostedService.la \
libVirt_ElementSettingData.la \
- libVirt_VSMigrationCapabilities.la
+ libVirt_VSMigrationCapabilities.la \
+ libVirt_VSMigrationService.la
libVirt_ComputerSystem_la_SOURCES = Virt_ComputerSystem.c
libVirt_Device_la_SOURCES = Virt_Device.c
@@ -140,4 +141,6 @@ libVirt_ElementSettingData_la_SOURCES =
libVirt_ElementSettingData_la_SOURCES = Virt_ElementSettingData.c
libVirt_ElementSettingData_la_LIBADD = -lVirt_VSSD -lVirt_RASD
-libVirt_VSMigrationCapabilities_la_SOURCES = Virt_VSMigrationCapabilities.c
\ No newline at end of file
+libVirt_VSMigrationCapabilities_la_SOURCES = Virt_VSMigrationCapabilities.c
+
+libVirt_VSMigrationService_la_SOURCES = Virt_VSMigrationService.c
\ No newline at end of file