]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessLaunch: Setup handling of 'on_reboot' via QMP when starting the process
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Aug 2021 14:40:46 +0000 (16:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Aug 2021 13:32:45 +0000 (15:32 +0200)
commitd0fad4ab2ea95ad7e54e3bc6577e30ed09c391be
tree542582b91076cbf416e44096834ac30f6e982e45
parent24dab19f8a7a46661d9a49c2fb73b25d8c5544be
qemuProcessLaunch: Setup handling of 'on_reboot' via QMP when starting the process

Rather than using '-no-reboot' use the QMP command to update the
lifecycle action of 'on_reboot'.

This will be identical to how we set the behaviour during lifetime and
also avoids problems with use of the 'system-reset' QMP command during
bringup of the VM (used to update the firmware table of disks when disks
were hotplugged as part of startup).

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