]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: virCHProcessEvent() vm shutdown event handler fix
authorKirill Shchetiniuk via Devel <devel@lists.libvirt.org>
Tue, 25 Mar 2025 14:11:59 +0000 (15:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Apr 2025 15:35:28 +0000 (17:35 +0200)
commit4c5e3b1ca0a9ec68796d28f4cc39f5bbbff77a8a
treee305bbf96f5299ea9e65d6415e64044542696ce6
parentad22460a75f8890483abd7b029c95db98357a092
ch: virCHProcessEvent() vm shutdown event handler fix

When the domain shutdown was executed from virsh, only the VM
process (a child of the CH monitor) was terminated. Since we assume
only one VM per monitor, the monitor process should also be
terminated.

Modified the VM shutdown event handler to match the VMM shutdown
behavior, ensuring the VM monitor stops along with the VM. Also
updated the virCHEventStopProcess job type, as it only destroys the
domain rather than modifying anything.

Signed-off-by: Kirill Shchetiniuk <kshcheti@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_events.c