Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Ben Guthro
I suppose I could make some sort of configure option to only compile it in optionally... I don't have access to a solaris box though...so don't really know what the appropriate API would be in that situation Daniel Veillard wrote on 11/07/2008 07:39 AM: > On Fri, Nov 07, 2008 at 12:26:23PM +000

Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Daniel Veillard
On Fri, Nov 07, 2008 at 12:26:23PM +, Daniel P. Berrange wrote: > > Yesterday, I began looking into creating a xen driver patch for emitting > > the DEFINED/UNDEFINED events via inotify. > > It looks like the easiest way to do this right now is to create yet another > > Xen sub-driver. > > I

Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Daniel P. Berrange
On Fri, Nov 07, 2008 at 07:12:46AM -0500, Ben Guthro wrote: > I think this sounds reasonable. > > Let me see if I understand the state machine for a newly created persistent > domain: > DEFINED->ADDED->STARTED->STOPPED Actually, swap ADDED & DEFINED, and for completeness, if I add in an virDomai

RE: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Ben Guthro
I think this sounds reasonable. Let me see if I understand the state machine for a newly created persistent domain: DEFINED->ADDED->STARTED->STOPPED Starting, then stopping a previously defined persistent domain would just emit STARTED->STOPPED and a transient domain would be: ADDED->STARTED->