[Libvirt-cim] [PATCHv2] ComputerSystemIndication: Support libvirt domain events

Eduardo Lima (Etrunko) eblima at linux.vnet.ibm.com
Mon Jan 2 19:17:41 UTC 2012


On 01/02/2012 04:52 PM, Eduardo Lima (Etrunko) wrote:
> From: Eduardo Lima (Etrunko) <eblima at br.ibm.com>
> 
> Port current implementation to use domain events implementation provided by
> libvirt. It requires libvirt version 0.9.0 or newer, when the
> virEventRegisterDefaultImpl and virEventRunDefaultImpl API's were introduced.
> 
> Now that all events are generated by libvirt itself, we don't need to trigger
> them manually anymore. Thus, this patch also removes trigger and raise calls
> from VirtualSystemManagementService and ComputerSystem providers.
> 
> Differences from v1:
>  - Move call to virRegisterDefaultImpl() to the provider code with protection
>    to ensure it is called only once.
>  - Call CBDetachThread() before exiting the lifecycle thread.

This version looks much more stable than the first one. I have run the
full cimtest suite many times, but it still looks like it interferes
with the ElementConforms group.

-- 
Eduardo de Barros Lima
Software Engineer, Open Virtualization
Linux Technology Center - IBM/Brazil
eblima at br.ibm.com




More information about the Libvirt-cim mailing list