> > + drasd = get_typed_class(options.virt,
> 'DiskResourceAllocationSettingData')
> > + drasd_id = '%s/%s' % (default_dom, nddev)
> > + dkeys = {'InstanceID' : drasd_id}
> > +
> > + nrasd = get_typed_class(options.virt,
> 'NetResourceAllocationSettingData')
> > + nrasd_id = '%s/%s' % (default_dom, nmac)
> > + nkeys = {'InstanceID' : nrasd_id}
>
> Instead of hand building the instances for the resources, use the proper
> association calls to get the RASD instances. You know the guest, so
> you can use SystemDevice to get the resource instance, and then
> SettingsDefineState to get the RASD instances.
I'm working on a new patch to get the RASD instances by association.
But I can't remove "KVM_InputResourceAllocationSettingData" which output
the device "mouse:ps2" can not be found. Actually, I get it by
SettingsDefineState.
If I remove this device from the ResourceSettings, this method works
for me.
Sorry Daisy.. I'm not sure I understand the problem you're hitting.
Are you seeing an error trying to remove an input device from a guest?
What error message do you see?
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com