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

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

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 don't

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

2008-11-07 Thread Ben Guthro
/7/2008 5:34 AM To: libvir-list@redhat.com Subject: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events We currently have the following list of events for domains: VIR_DOMAIN_EVENT_ADDED, VIR_DOMAIN_EVENT_REMOVED, VIR_DOMAIN_EVENT_STARTED

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

2008-11-07 Thread Daniel P. Berrange
We currently have the following list of events for domains: VIR_DOMAIN_EVENT_ADDED, VIR_DOMAIN_EVENT_REMOVED, VIR_DOMAIN_EVENT_STARTED, VIR_DOMAIN_EVENT_SUSPENDED, VIR_DOMAIN_EVENT_RESUMED, VIR_DOMAIN_EVENT_STOPPED, VIR_DOMAIN_EVENT_SAVED,