
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1235598357 28800 # Node ID 480583d078d980eccef14553b7ff8755aaed75ba # Parent a8e06182465825ccc61675ffddfff329343eda0e Fix ResourceAllocation profile definition in profiles.h
Since KVM_ResourcePool, Xen_ResourcePool, etc doesn't exist, the Resource Allocation Profile needs to point to the specific pool (DiskPool, etc).
This is similar to how the Generic Device Resource Virtualization
+1 . Best, Regards Daisy (运国莲) VSM Team, China Systems & Technology Labs (CSTL) E-mail: yunguol@cn.ibm.com TEL: (86)-21-60922403 Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203 libvirt-cim-bounces@redhat.com wrote on 2009-02-26 06:04:10: profile is
handled.
Sample query:
wbemcli ain -ac KVM_ElementConformsToProfile 'http://localhost: 5988/root/interop:KVM_RegisteredProfile.InstanceID="CIM:DSP1041- ResourceAllocation-1.1.0c_p"'
elm3b41/root/virt:KVM_ProcessorPool.InstanceID="ProcessorPool/0"
Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com>
diff -r a8e061824658 -r 480583d078d9 src/profiles.h --- a/src/profiles.h Wed Feb 25 13:06:01 2009 -0800 +++ b/src/profiles.h Wed Feb 25 13:45:57 2009 -0800 @@ -124,13 +124,43 @@ .scoping_profile = &SystemVirtualization };
-struct reg_prof ResourceAllocation = { +struct reg_prof ResourceAllocation_Disk = { .reg_org = 2, - .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c", + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d", .reg_name = "Resource Allocation", .reg_version = "1.1.0c", .scoping_class = "ComputerSystem", - .central_class = "ResourcePool", + .central_class = "DiskPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Net = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "NetworkPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Proc = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "ProcessorPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Mem = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "MemoryPool", .scoping_profile = &SystemVirtualization };
@@ -145,7 +175,10 @@ &VirtualSystemMigration, &KVMRedirection, &AllocationCapabilities, - &ResourceAllocation, + &ResourceAllocation_Disk, + &ResourceAllocation_Net, + &ResourceAllocation_Proc, + &ResourceAllocation_Mem, NULL };
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim