@@ -1300,9 +1300,15 @@ static void do_boot_set(Monitor *mon, const QDict *qdict)
}
}
-static void do_system_reset(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_reset(): Issue a machine reset
+ *
+ * return always succeed.
+ */
+static int do_system_reset(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
qemu_system_reset_request();
+ return 0;
}
static void do_system_powerdown(Monitor *mon, const QDict *qdict)
@@ -464,7 +464,7 @@ ETEXI
.name = "system_reset",
.args_type = "",
.handler = do_system_reset,
- .user_print = NULL,
+ .user_print = monitor_print_nothing,
.params = "",
.help = "reset the system"
},
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor.c | 8 +++++++- qemu-monitor.hx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-)