From 2dadd7538562b01ac50791c28fc1b95209dce68a Mon Sep 17 00:00:00 2001 From: Yuval Shaia Date: Fri, 21 Dec 2018 16:40:33 +0200 Subject: 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 Reviewed-by: Cornelia Huck Signed-off-by: Marcel Apfelbaum --- include/sysemu/sysemu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sysemu/sysemu.h') 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); -- cgit v1.1