Re: [libvirt] [PATCH] [5/6] Add script hook support to the QEmu driver

2010-03-29 Thread Daniel Veillard
On Fri, Mar 26, 2010 at 11:09:08AM -0600, Eric Blake wrote: On 03/26/2010 09:45 AM, Daniel Veillard wrote: +/* now that we know it is about to start call the hook if present */ +if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) { +char *xml = virDomainDefFormat(vm-def, 0); +

Re: [libvirt] [PATCH] [5/6] Add script hook support to the QEmu driver

2010-03-26 Thread Daniel Veillard
Add script hook support to the QEmu driver Right now this implements only 2 basic hooks: - before the qemu process is being launched - after the qemu process is terminated the XML description of the domain is passed to the hook script stdin /etc/libvirt/hook/qemu * src/qemu/qemu_driver.c:

Re: [libvirt] [PATCH] [5/6] Add script hook support to the QEmu driver

2010-03-26 Thread Eric Blake
On 03/26/2010 09:45 AM, Daniel Veillard wrote: +/* now that we know it is about to start call the hook if present */ +if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) { +char *xml = virDomainDefFormat(vm-def, 0); +int hookret; + +hookret =