# HG changeset patch
# User Kaitlin Rupert <karupert(a)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 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(a)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
};