mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: ingore the transient domain state in fake reboot
When action for 'on_poweroff' is set to 'restart', 'fake reboot'
is triggered and qemu shutdown state is transient. Domain state
need not to be changed and events not sent in this case.
Fixes: 4ffc807214
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
49d74124a5
commit
88a3977922
@ -612,7 +612,7 @@ qemuProcessHandleShutdown(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
|
||||
/* In case of fake reboot qemu shutdown state is transient so don't
|
||||
* change domain state nor send events. */
|
||||
if (!priv->fakeReboot ||
|
||||
if (!priv->fakeReboot &&
|
||||
vm->def->onPoweroff != VIR_DOMAIN_LIFECYCLE_ACTION_RESTART) {
|
||||
VIR_DEBUG("Transitioned guest %s to shutdown state",
|
||||
vm->def->name);
|
||||
|
Loading…
Reference in New Issue
Block a user