os-cmpi-xen

view schema/dmtf/CIM_ResourcePool.mof @ 121:4868ace2726b

Add initial consistence checks in test suite for Xen_MemoryPool, Xen_ProcessorPool and Xen_VirtualSystemManagementService.

Signed-off-by: Luke Szymanski <Lukasz.Szymanski@Unisys.com>
author Jim Fehlig <jfehlig@novell.com>
date Fri Jun 08 10:22:05 2007 -0600 (2007-06-08)
parents cd21b7e999f3
children
line source
1 // Copyright (c) 2007 DMTF. All rights reserved.
2 // This document is a DMTF System Virtualization, Partitioning and
3 // Clustering workgroup "Work in Progress" and is subject to change.
4 // This document was released on January 15 2007.
5 // This document must not be used after May 1 2007.
6 // ===================================================================
7 // CIM_ResourcePool
8 // ===================================================================
9 [Experimental, Version ("2.15.0"), Description (
10 "A ResourcePool is a logical entity (with associated controls)"
11 "provided by the host system for the purpose of allocation and "
12 "assignment of resources. A given ResourcePool may "
13 "be used to allocate resources of a specific type. Hierarchies "
14 "of ResourcePools may be created to provide administrative "
15 "control over allocations. In the cases where resources are "
16 "subdivided, multiple resource pools may exist (e.g. nodal "
17 "boundaries in NUMA-like systems). In systems that support "
18 "over commitment, pools represent the reservable capacity, not an "
19 "upper bound or limit on the maximum amount that can be "
20 "allocated. Admission control during power on may detect and "
21 "prevent systems from powering due to resource exhaustion. For example, "
22 "over commitment on a ResourcePool with ResourceType=Memory would "
23 "require that sufficient space be available in some backing-store, "
24 "that may be managed through a storage ResourcePool.")]
25 class CIM_ResourcePool : CIM_LogicalElement {
27 [Key, Description (
28 "Within the scope of the instantiating Namespace, InstanceID "
29 "opaquely and uniquely identifies an instance of this class. "
30 "To ensure uniqueness within the NameSpace, the value of "
31 "InstanceID should be constructed using the following "
32 "\"preferred\" algorithm: \n"
33 "<OrgID>:<LocalID> \n"
34 "Where <OrgID> and <LocalID> are separated by a colon (:), "
35 "and where <OrgID> must include a copyrighted, trademarked, "
36 "or otherwise unique name that is owned by the business "
37 "entity that is creating or defining the InstanceID or that "
38 "is a registered ID assigned to the business entity by a "
39 "recognized global authority. (This requirement is similar "
40 "to the <Schema Name>_<Class Name> structure of Schema class "
41 "names.) In addition, to ensure uniqueness, <OrgID> must not "
42 "contain a colon (:). When using this algorithm, the first "
43 "colon to appear in InstanceID must appear between <OrgID> "
44 "and <LocalID>. \n"
45 "<LocalID> is chosen by the business entity and should not "
46 "be reused to identify different underlying (real-world) "
47 "elements. If the above \"preferred\" algorithm is not used, "
48 "the defining entity must ensure that the resulting "
49 "InstanceID is not reused across any InstanceIDs produced by "
50 "this or other providers for the NameSpace of this instance. "
51 "\nFor DMTF-defined instances, the \"preferred\" algorithm "
52 "must be used with the <OrgID> set to CIM.")]
53 string InstanceID;
55 [Description ("An opaque identifier for the pool. This property "
56 "is used to provide correlation across save and restore of "
57 "configuration data to underlying persistent storage."),
58 ModelCorrespondence { "CIM_ResourceAllocationSettingData.PoolId" }]
59 string PoolID;
61 [Description (
62 "If true, \"Primordial\" indicates that this ResourcePool is "
63 "a base from which resources are drawn and returned "
64 "in the activity of resource management. Being primordial "
65 "means that this ResourcePool shall not be created or deleted "
66 "by consumers of this model. However, other actions, modeled "
67 "or not, may affect the characteristics or size of "
68 "primordial ResourcePools. If false, \"Primordial\" indicates "
69 "that the ResourcePool, a concrete Resource Pool, is subject "
70 "to resource allocation services functions. This distinction is "
71 "important because higher-level ResourcePools may be "
72 "assembled using the Component or ElementAllocatedFromPool "
73 "associations. Although the higher-level abstractions can be "
74 "created and deleted, the most basic, (i.e. primordial), "
75 "hardware-based ResourcePools cannot. They are physically "
76 "realized as part of the System, or are actually managed by "
77 "some other System and imported as if they were physically "
78 "realized.")]
79 boolean Primordial = false;
81 [Description ("This property represents the maximum "
82 "amount (in units of AllocationUnits) of reservations "
83 "that the ResourcePool can support.")]
84 uint64 Capacity;
86 [Description ("This property represents the current "
87 "reservations (in units of AllocationUnits) spread across "
88 "all active allocations from this pool. In a hierarchical "
89 "configuration, this represents the sum of all descendant "
90 "ResourcePool current reservations.")]
91 uint64 Reserved;
93 [Description ("The type of resource this ResourcePool may allocate."),
94 ValueMap { "1", "2", "3", "4", "5", "6", "7", "8", "9",
95 "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
96 "20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
97 "..", "0x8000..0xFFFF" },
98 Values { "Other", "Computer System", "Processor", "Memory",
99 "IDE Controller", "Parallel SCSI HBA", "FC HBA",
100 "iSCSI HBA", "IB HCA", "Ethernet Adapter",
101 "Other Network Adapter", "I/O Slot", "I/O Device",
102 "Floppy Drive", "CD Drive", "DVD drive", "Disk Drive",
103 "Tape Drive", "Storage Extent", "Other storage device", "Serial port",
104 "Parallel port", "USB Controller", "Graphics controller",
105 "IEEE 1394 Controller", "Partitionable Unit",
106 "Base Partitionable Unit", "Power Supply", "Cooling Device",
107 "DMTF reserved", "Vendor Reserved"},
108 ModelCorrespondence {
109 "CIM_ResourcePool.OtherResourceType",
110 "CIM_ResourcePool.ResourceSubType"}]
111 uint16 ResourceType;
113 [Description ("A string that describes the resource type when a "
114 "well defined value is not available and ResourceType is "
115 "set to 0 for Other."),
116 ModelCorrespondence {
117 "CIM_ResourcePool.ResourceType" }]
118 string OtherResourceType;
120 [Description ("A string describing an implementation specific "
121 "sub-type for this pool. For example, this may "
122 "be used to distinguish different models of the same "
123 "resource type."),
124 ModelCorrespondence {
125 "CIM_ResourcePool.ResourceType" }]
126 string ResourceSubType;
128 [Description ("This property specifies the units of allocation "
129 "used by the Reservation and Limit properties. For example, "
130 "when ResourceType=Processor, AllocationUnits may be set to MegaHertz. "
131 "When ResourceType=Memory, AllocationUnits may be set to MegaBytes"
132 "The value of this property "
133 "shall be a legal value of the Programmatic Units qualifier as "
134 "defined in Appendix C.1 of DSP0004 V2.4 or later.")]
135 string AllocationUnits;
137 };