Re: [libvirt] [PATCH V2] libxl: queue domain event earlier in shutdown handler

2014-02-25 Thread Michal Privoznik
On 24.02.2014 19:06, Jim Fehlig wrote: The shutdown handler may restart a domain when handling a reboot event or when on_* is set to 'restart'. Restarting consists of calling libxlVmCleanup followed by libxlVmStart. libxlVmStart will emit a VIR_DOMAIN_EVENT_STARTED event, but the SHUTDOWN

Re: [libvirt] [PATCH V2] libxl: queue domain event earlier in shutdown handler

2014-02-25 Thread Jim Fehlig
Michal Privoznik wrote: On 24.02.2014 19:06, Jim Fehlig wrote: The shutdown handler may restart a domain when handling a reboot event or when on_* is set to 'restart'. Restarting consists of calling libxlVmCleanup followed by libxlVmStart. libxlVmStart will emit a VIR_DOMAIN_EVENT_STARTED

[libvirt] [PATCH V2] libxl: queue domain event earlier in shutdown handler

2014-02-24 Thread Jim Fehlig
The shutdown handler may restart a domain when handling a reboot event or when on_* is set to 'restart'. Restarting consists of calling libxlVmCleanup followed by libxlVmStart. libxlVmStart will emit a VIR_DOMAIN_EVENT_STARTED event, but the SHUTDOWN event is not emitted until exiting the