diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-10-07 13:41:57 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-08 21:17:19 -0500 |
commit | e0c97bdef8be937df9aaf7d24733ba1e34d8721a (patch) | |
tree | bbec2bccf29df3d1883a2f0472c0fbd858bac526 | |
parent | b223f35f4e13a65db8032700a329c7cbf62016c5 (diff) |
monitor: Convert do_stop() to QObject
Patchworks-ID: 35343
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | monitor.c | 5 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -599,7 +599,10 @@ static void do_singlestep(Monitor *mon, const QDict *qdict) } } -static void do_stop(Monitor *mon, const QDict *qdict) +/** + * do_stop(): Stop VM execution + */ +static void do_stop(Monitor *mon, const QDict *qdict, QObject **ret_data) { vm_stop(EXCP_INTERRUPT); } diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 51c76736b7..8fcba2452e 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -287,7 +287,8 @@ ETEXI .args_type = "", .params = "", .help = "stop emulation", - .mhandler.cmd = do_stop, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_stop, }, STEXI |