# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196787355 28800
# Node ID b71790bb1ff44e6cbd8eebf28caee6ce3c21a340
# Parent 058dc68a17d0303c8272f9b2c52916f783ba3ae8
Add HostedService support for VirtualSystemMigrationService
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 058dc68a17d0 -r b71790bb1ff4 src/Makefile.am
--- a/src/Makefile.am Tue Dec 04 08:54:46 2007 -0800
+++ b/src/Makefile.am Tue Dec 04 08:55:55 2007 -0800
@@ -133,9 +133,9 @@ libVirt_ElementAllocatedFromPool_la_SOUR
libVirt_ElementAllocatedFromPool_la_SOURCES = Virt_ElementAllocatedFromPool.c
libVirt_ElementAllocatedFromPool_la_LIBADD = -lVirt_DevicePool -lVirt_Device
-libVirt_HostedService_la_DEPENDENCIES = libVirt_VirtualSystemManagementService.la
libVirt_ResourcePoolConfigurationService.la
+libVirt_HostedService_la_DEPENDENCIES = libVirt_VirtualSystemManagementService.la
libVirt_ResourcePoolConfigurationService.la libVirt_VSMigrationService.la
libVirt_HostedService_la_SOURCES = Virt_HostedService.c
-libVirt_HostedService_la_LIBADD = -lVirt_VirtualSystemManagementService
-lVirt_ResourcePoolConfigurationService
+libVirt_HostedService_la_LIBADD = -lVirt_VirtualSystemManagementService
-lVirt_ResourcePoolConfigurationService -lVirt_VSMigrationService
libVirt_ElementSettingData_la_DEPENDENCIES = libVirt_VSSD.la libVirt_RASD.la
libVirt_ElementSettingData_la_SOURCES = Virt_ElementSettingData.c
diff -r 058dc68a17d0 -r b71790bb1ff4 src/Virt_HostedService.c
--- a/src/Virt_HostedService.c Tue Dec 04 08:54:46 2007 -0800
+++ b/src/Virt_HostedService.c Tue Dec 04 08:55:55 2007 -0800
@@ -33,6 +33,7 @@
#include "Virt_HostSystem.h"
#include "Virt_VirtualSystemManagementService.h"
#include "Virt_ResourcePoolConfigurationService.h"
+#include "Virt_VSMigrationService.h"
const static CMPIBroker *_BROKER;
@@ -72,6 +73,12 @@ static CMPIStatus host_to_service(const
return s;
if (!CMIsNullObject(inst))
inst_list_add(list, inst);
+
+ s = get_migration_service(ref, &inst, _BROKER);
+ if (s.rc != CMPI_RC_OK)
+ return s;
+ if (!CMIsNullObject(inst))
+ inst_list_add(list, inst);
return s;
}
@@ -116,8 +123,10 @@ char* dependent[] = {
char* dependent[] = {
"Xen_ResourcePoolConfigurationService",
"Xen_VirtualSystemManagementService",
+ "Xen_VirtualSystemMigrationService",
"KVM_ResourcePoolConfigurationService",
"KVM_VirtualSystemManagementService",
+ "KVM_VirtualSystemMigrationService",
NULL
};