]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Pass shutoff reason to release hook
authorSwapnil Ingle <swapnil.ingle@nutanix.com>
Tue, 18 Jun 2024 16:39:58 +0000 (16:39 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Jun 2024 10:15:26 +0000 (12:15 +0200)
commitc772f1982d854eebe2131e80c4e95d19e573cc8c
tree032d3d8d07c490058589cea7e3305592954991e9
parent2b199ad3f1a69bd6de1b2a1fc7d5bd31817dcb11
Pass shutoff reason to release hook

Sometimes in release hook it is useful to know if the VM shutdown was graceful
or not. This is especially useful to do cleanup based on the VM shutdown failure
reason in release hook. This patch proposes to use the last argument 'extra'
to pass VM shutoff reason in the call to release hook.
Making this change for Qemu and LXC.

Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/hooks.rst
src/lxc/lxc_process.c
src/qemu/qemu_process.c