qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 5/7] monitor: Convert do_stop() to QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 5/7] monitor: Convert do_stop() to QObject
Date: Wed, 16 Sep 2009 18:32:38 -0300

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c       |    8 +++++++-
 qemu-monitor.hx |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/monitor.c b/monitor.c
index b324538..9ef9108 100644
--- a/monitor.c
+++ b/monitor.c
@@ -604,9 +604,15 @@ static void do_singlestep(Monitor *mon, const QDict *qdict)
     }
 }
 
-static void do_stop(Monitor *mon, const QDict *qdict)
+/**
+ * do_stop(): Stop VM execution
+ *
+ * return always succeed.
+ */
+static int do_stop(Monitor *mon, const QDict *qdict, QObject **ret_data)
 {
     vm_stop(EXCP_INTERRUPT);
+    return 0;
 }
 
 static void encrypted_bdrv_it(void *opaque, BlockDriverState *bs);
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 401d5c5..f6c9911 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -285,7 +285,7 @@ ETEXI
         .name       = "stop",
         .args_type  = "",
         .handler    = do_stop,
-        .user_print = NULL,
+        .user_print = monitor_print_nothing,
         .params     = "",
         .help       = "stop emulation",
     },
-- 
1.6.5.rc0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]