]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Honor 'restart' action for 'on_poweroff'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Aug 2021 12:44:51 +0000 (14:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Aug 2021 13:32:44 +0000 (15:32 +0200)
commit4ffc807214cb80086d57e1d3e7b60959a41d2874
tree318d754ad222524b61de2a46f6eef17351638bd8
parentb1b85a475fb251b9068b75f629479f5c452f1b43
qemu: Honor 'restart' action for 'on_poweroff'

We simply terminate qemu instead of issuing a reset as the semantics of
the setting dictate.

Fix it by handling it identically to 'fake reboot'.

We need to forbid the combination of 'onReboot' -> 'destroy' and
'onPoweroff' -> reboot though as the handling would be hairy and it
honetly makes no sense.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst
src/qemu/qemu_process.c
src/qemu/qemu_validate.c