aboutsummaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-14 18:29:43 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2011-06-16 11:42:40 -0300
commite063eb1f4a6d42371e7d288dfdb690d5821190ed (patch)
tree7d222f1c5357f87d7486b8a8ff76426461db36b0 /sysemu.h
parente4ea5e2d0e0e4c5188ab45b66f3195062ae059dc (diff)
downloadqemu-e063eb1f4a6d42371e7d288dfdb690d5821190ed.zip
qemu-e063eb1f4a6d42371e7d288dfdb690d5821190ed.tar.gz
qemu-e063eb1f4a6d42371e7d288dfdb690d5821190ed.tar.bz2
Allow silent system resets
This allows qemu_system_reset to be issued silently for internal purposes, ie. without sending out a monitor event. Convert the system reset after startup to the silent mode. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysemu.h b/sysemu.h
index 7e70daa..d3013f5 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -34,6 +34,9 @@ void qemu_del_vm_change_state_handler(VMChangeStateEntry *e);
#define VMSTOP_LOADVM 7
#define VMSTOP_MIGRATE 8
+#define VMRESET_SILENT false
+#define VMRESET_REPORT true
+
void vm_start(void);
void vm_stop(int reason);
@@ -50,7 +53,7 @@ int qemu_powerdown_requested(void);
void qemu_system_killed(int signal, pid_t pid);
void qemu_kill_report(void);
extern qemu_irq qemu_system_powerdown;
-void qemu_system_reset(void);
+void qemu_system_reset(bool report);
void qemu_add_exit_notifier(Notifier *notify);
void qemu_remove_exit_notifier(Notifier *notify);