[Libvirt-cim] [PATCH 1/3] libxutil: Controller Support
Boris Fiuczynski
fiuczy at linux.vnet.ibm.com
Thu Mar 13 14:10:59 UTC 2014
On 03/13/2014 01:45 PM, John Ferlan wrote:
>
>
> On 03/12/2014 12:36 PM, Boris Fiuczynski wrote:
>>> diff --git a/src/svpc_types.h b/src/svpc_types.h
>>> index 404e428..d76097c 100644
>>> --- a/src/svpc_types.h
>>> +++ b/src/svpc_types.h
>>> @@ -32,12 +32,13 @@
>>> #define CIM_RES_TYPE_DISK 17
>>> #define CIM_RES_TYPE_GRAPHICS 24
>>> #define CIM_RES_TYPE_INPUT 13
>>> +#define CIM_RES_TYPE_CONTROLLER 33
>> 33 is DMTF reserved as an Ethernet Connection the next logical number in
>> libvirt-cim terms would be 32771 (see below)
>
>
> Do you have a link handy to the specification that describes the
> numbers? I know I used to have a link, but I cannot find it any more.
>
> tks,
>
> John
John, sure!
http://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_ResourceAllocationSettingData.html
I suggested
#define CIM_RES_TYPE_CONTROLLER 32771
that is for provider pluming but when generating the CIM instance I
suggested to set CIM_ResourceAllocationSettingData.ResourceType as
Other or 1 to make use of
CIM_ResourceAllocationSettingData.OtherResourceType and
CIM_ResourceAllocationSettingData.ResourceSubType
as explained in my response to Patch 2/3
>>> #define CIM_RES_TYPE_UNKNOWN 1000
>>> #define CIM_RES_TYPE_IMAGE 32768
>>> #define CIM_RES_TYPE_CONSOLE 32769
>>> #define CIM_RES_TYPE_EMU 32770
>>>
>>> -#define CIM_RES_TYPE_COUNT 7
>>> +#define CIM_RES_TYPE_COUNT 8
>>> const static int cim_res_types[CIM_RES_TYPE_COUNT] =
>>> {CIM_RES_TYPE_NET,
>>> CIM_RES_TYPE_DISK,
>>> @@ -46,6 +47,7 @@ const static int cim_res_types[CIM_RES_TYPE_COUNT] =
>>> CIM_RES_TYPE_GRAPHICS,
>>> CIM_RES_TYPE_INPUT,
>>> CIM_RES_TYPE_CONSOLE,
>>> + CIM_RES_TYPE_CONTROLLER,
>>> };
>>>
>>> #define CIM_VSSD_RECOVERY_NONE 2
>>>
>>
>>
>
--
Mit freundlichen Grüßen/Kind regards
Boris Fiuczynski
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina Köderitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
More information about the Libvirt-cim
mailing list