diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2018-12-21 16:40:33 +0200 |
---|---|---|
committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | 2018-12-22 11:09:56 +0200 |
commit | 2dadd7538562b01ac50791c28fc1b95209dce68a (patch) | |
tree | 8a90b8f5330d52fa8553c39bf9a7fe1966edd428 /include | |
parent | 14c74f720738e17ff2569ba66c0d32a5f0f69a69 (diff) | |
download | qemu-2dadd7538562b01ac50791c28fc1b95209dce68a.zip qemu-2dadd7538562b01ac50791c28fc1b95209dce68a.tar.gz qemu-2dadd7538562b01ac50791c28fc1b95209dce68a.tar.bz2 |
vl: Introduce shutdown_notifiers
Notifier will be used for signaling shutdown event to inform system is
shutdown. This will allow devices and other component to run some
cleanup code needed before VM is shutdown.
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/sysemu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index c8efdeb..e0d15da 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -62,6 +62,7 @@ void qemu_register_wakeup_support(void); void qemu_system_shutdown_request(ShutdownCause reason); void qemu_system_powerdown_request(void); void qemu_register_powerdown_notifier(Notifier *notifier); +void qemu_register_shutdown_notifier(Notifier *notifier); void qemu_system_debug_request(void); void qemu_system_vmstop_request(RunState reason); void qemu_system_vmstop_request_prepare(void); |