# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196711744 28800
# Node ID d22f5f8cf494b7d1290e58b337843d2d70fc7f96
# Parent 5ba311c0a725a603bb0e30349ad95d429a88f500
Add build support for VirtualSystemMigrationService
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 5ba311c0a725 -r d22f5f8cf494 Makefile.am
--- a/Makefile.am Mon Dec 03 11:55:44 2007 -0800
+++ b/Makefile.am Mon Dec 03 11:55:44 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 5ba311c0a725 -r d22f5f8cf494 schema/VSMigrationService.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VSMigrationService.mof Mon Dec 03 11:55:44 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 5ba311c0a725 -r d22f5f8cf494 schema/VSMigrationService.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/VSMigrationService.registration Mon Dec 03 11:55:44 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 5ba311c0a725 -r d22f5f8cf494 src/Makefile.am
--- a/src/Makefile.am Mon Dec 03 11:55:44 2007 -0800
+++ b/src/Makefile.am Mon Dec 03 11:55:44 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