I've introduced the STOP event in the main loop, this is wrong
as it will be only emitted if the io thread is enabled.
This fixes that by moving the STOP event to do_vm_stop().
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vm_running = 0;
pause_all_vcpus();
vm_state_notify(0, reason);
+ monitor_protocol_event(QEVENT_STOP, NULL);
}
}
qemu_irq_raise(qemu_system_powerdown);
}
if ((r = qemu_vmstop_requested())) {
- monitor_protocol_event(QEVENT_STOP, NULL);
vm_stop(r);
}
}