[Libvirt-cim] Query on Pointing Device.

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Thu Nov 20 11:31:18 UTC 2008



Deepti B Kalakeri wrote:
>
>
> Kaitlin Rupert wrote:
>> Deepti B Kalakeri wrote:
>>> What will happen when the input tag of the xml  has the following 
>>> format ?
>>> <input type != 'mouse/tablet' bus != 'xen/usb/ps2'/>
>>> For ein on Xen_PointingDevice
>>> Should the caption be "Unknown bus Unknown device type" ??
>>>
>>> Though I tried creating a guest with invalid values in the input 
>>> tags using the xml file,
>>> the guest was always created with the <input type='mouse' 
>>> bus='xen'/> tag when I saw the dumpxml of the guest.
>>> Is there a way to supply invalid values to the input tag ?
>>>
>>
>> If you try to create a guest with an invalid type or bus, you'll see 
>> something like the following error:
>>
>> <input type='invalid' bus='ps2'/>
>>
>> libvir: Domain Config error : internal error unknown input device 
>> type 'invalid'
>> error: Failed to define domain from test
>>
>> ---------------
>>
>> <input type='mouse' bus='invalid'/>
>>
>> libvir: Domain Config error : internal error unknown input bus type 
>> 'invalid'
>> error: Failed to define domain from test
>>
>>
>> ------------
>>
>> If we're unable to get the expected values from the guest, then some 
>> kind of error in libvirt has occurred.  So setting the caption to 
>> "Unknown bus Unknown device type" is a fall back in that case.
> Does the <input type='mouse' bus='xen'/> get assigned by default ?
> Because, for Xen  PV the values are getting assigned by default even 
> though the tc did not supply them .
> Ex: check the vsxml output from the tc 41_cs_to_settingdefinestate.py.
> The default values are not getting assigned for KVM though.
The use of cim_define is adding the input tags .
>
> Thanks and Regards,
> Deepti.




More information about the Libvirt-cim mailing list