os-cmpi-xen

view schema/dmtf/CIM_ResourceAllocationSettingData.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_ResourceAllocationSettingData
8 // ===================================================================
9 [Experimental, Version ("2.15.0"), Description (
10 "The ResourceAllocationSettingData class represents settings "
11 "specifically related to an allocated resource that are outside "
12 "the scope of the CIM class typically used to represent the "
13 "resource itself. These settings include information specific "
14 "to the allocation that may not be visible to the consumer "
15 "of the resource itself. For example, a virtual processor may look like "
16 "a 2 ghz processor to the consumer (virtual computer system), however "
17 "the virtualization system may use time-slicing to schedule the "
18 "the virtual processor to only allow it to use 1 ghz. ")]
19 class CIM_ResourceAllocationSettingData : CIM_SettingData {
21 [Description ("The type of resource this allocation setting represents."),
22 ValueMap { "1", "2", "3", "4", "5", "6", "7", "8", "9",
23 "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
24 "20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
25 "..", "0x8000..0xFFFF" },
26 Values { "Other", "Computer System", "Processor", "Memory",
27 "IDE Controller", "Parallel SCSI HBA", "FC HBA",
28 "iSCSI HBA", "IB HCA", "Ethernet Adapter",
29 "Other Network Adapter", "I/O Slot", "I/O Device",
30 "Floppy Drive", "CD Drive", "DVD drive", "Disk Drive",
31 "Tape Drive", "Storage Extent", "Other storage device", "Serial port",
32 "Parallel port", "USB Controller", "Graphics controller",
33 "IEEE 1394 Controller", "Partitionable Unit",
34 "Base Partitionable Unit", "Power Supply", "Cooling Device",
35 "DMTF reserved", "Vendor Reserved"},
36 ModelCorrespondence {
37 "CIM_ResourceAllocationSettingData.OtherResourceType",
38 "CIM_ResourceAllocationSettingData.ResourceSubType"}]
39 uint16 ResourceType;
41 [Description ("A string that describes the resource type when a "
42 "well defined value is not available and ResourceType has "
43 "the value \"Other\"."),
44 ModelCorrespondence {
45 "CIM_ResourceAllocationSettingData.ResourceType" }]
46 string OtherResourceType;
48 [Description ("A string describing an implementation specific "
49 "sub-type for this resource. For example, this may "
50 "be used to distinguish different models of the same "
51 "resource type."),
52 ModelCorrespondence {
53 "CIM_ResourceAllocationSettingData.ResourceType"}]
54 string ResourceSubType;
56 [Description ("This property specifies which ResourcePool the "
57 "resource is currently allocated from, or which ResourcePool "
58 "the resource will be allocated from when the allocation "
59 "occurs."),
60 ModelCorrespondence { "CIM_ResourcePool.PoolId" }]
61 string PoolID;
63 [Description (
64 "Describes the consumers visibility to the allocated "
65 "resource.\n"
66 "A value of \"Passed-Through\" indicates the "
67 "underlying or host resource is utilized and passed through "
68 "to the consumer, possibly using partitioning. At least one "
69 "item shall be present in the HostResource property. \n"
70 "A value of \"Virtualized\" indicates the resource is virtualized "
71 "and may not map directly to an underlying/host resource. "
72 "Some implementations may support specific assignment "
73 "for virtualized resources, in which case the host "
74 "resource(s) are exposed using the HostResource property. \n"
75 "A value of \"Not represented\" indicates a representation "
76 "of the resource does not exist within the context of "
77 "the resource consumer. "),
78 ValueMap { "0", "2", "3", "4", "..", "32767..65535" },
79 Values { "Unknown", "Passed-Through", "Virtualized",
80 "Not represented", "DMTF reserved", "Vendor Reserved" }]
81 uint16 ConsumerVisibility;
83 [EmbeddedInstance("CIM_LogicalDevice"), Description (
84 "This property exposes specific assignment to host or "
85 "underlying resources. The embedded instances shall contain "
86 "only key properties and be treated as Object Paths. If the "
87 "virtual resource may be scheduled on a number of underlying "
88 "resources, this property shall be left NULL. In that case, "
89 "the DeviceAllocatedFromPool or ResourceAllocationFromPool "
90 "associations may be used to determine the pool of host "
91 "resources this virtual resource may be scheduled on. "
92 "If specific assignment is utilized, all underlying "
93 "resources used by this virtual resource shall be listed "
94 "in this array. Typically the array will contain one item, "
95 "however for aggregate allocations, such as multiple processors, "
96 "multiple host resources may be specified. ")]
97 string HostResource[];
99 [Description ("This property specifies the units of allocation "
100 "used by the Reservation and Limit properties. For example, "
101 "when ResourceType=Processor, AllocationUnits may be set to MegaHertz. "
102 "When ResourceType=Memory, AllocationUnits may be set to MegaBytes"
103 "The value of this property "
104 "shall be a legal value of the Programmatic Units qualifier as "
105 "defined in Appendix C.1 of DSP0004 V2.4 or later.")]
106 string AllocationUnits;
108 [Description ( "This property specifies the quantity of resources "
109 "presented to the consumer. For example, when "
110 "ResourceType=Processor, this property would reflect the "
111 "number of discrete Processors presented to the virtual "
112 "computer system. When ResourceType=Memory, this property "
113 "could reflect the number of MB reported to the virtual "
114 "computer system. ")]
115 uint64 VirtualQuantity;
117 [Description ("This property specifies the amount of resource "
118 "guaranteed to be available for this allocation. On system "
119 "which support over-commitment of resources, this value "
120 "is typically used for admission control to prevent an "
121 "an allocation from being accepted thus preventing starvation.")]
122 uint64 Reservation;
124 [Description ("This property specifies the upper bound, or maximum "
125 "amount of resource that will be granted for this allocation. "
126 "For example, a system which supports memory paging may support "
127 "setting the Limit of a Memory allocation below that of the "
128 "VirtualQuantity, thus forcing paging to occur for this "
129 "allocation.")]
130 uint64 Limit;
132 [Description ("This property specifies a relative priority for this "
133 "allocation in relation to other allocations from the same "
134 "ResourcePool. This property has no unit of measure, and is "
135 "only relevant when compared to other allocations vying for "
136 "the same host resources.")]
137 uint32 Weight;
139 [Description ("This property specifies if the resource will be "
140 "automatically allocated. For example when set to true, "
141 "when the consuming virtual computer system is powered on, "
142 "this resource would be allocated. A value of false "
143 "indicates the resource must be explicitly allocated. For "
144 "example, the setting may represent removable media "
145 "(cdrom, floppy, etc.) where at power on time, the media is"
146 "not present. An explicit operation is required to allocate "
147 "the resource.")]
148 boolean AutomaticAllocation;
150 [Description ("This property specifies if the resource will be "
151 "automatically de-allocated. For example, when set to true, "
152 "when the consuming virtual computer system is powered off, "
153 "this resource would be de-allocated. When set to false, the "
154 "resource will remain allocated and must be explicitly "
155 "de-allocated.")]
156 boolean AutomaticDeallocation;
158 [Description ("The Parent of the resource."
159 "For example, a controller for the current allocation")]
160 string Parent;
162 [Description ("The thing to which this resource is connected. "
163 "For example, a named network or switch port.")]
164 string Connection[];
166 [Description ("The address of the resource."
167 "For example, the MAC address of a Ethernet port.")]
168 string Address;
170 [Description ("Specifies how this resource maps to underlying resources"
171 "If the HostResource array contains any entries, this property "
172 "reflects how the resource maps to those specific resources. "),
173 ValueMap { "0", "1", "2", "3", "4", "..", "32767..65535" },
174 Values { "Unknown", "Not Supported", "Dedicated",
175 "Soft Affinity", "Hard Affinity", "DMTF Reserved", "Vendor Reserved" }]
176 uint16 MappingBehavior;
178 };