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);
+
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:
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 =