aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index de47684bc6..ee19128458 100644
--- a/monitor.c
+++ b/monitor.c
@@ -190,6 +190,11 @@ static void do_info(const char *item)
cmd->handler();
}
+static void do_info_version(void)
+{
+ term_printf("%s\n", QEMU_VERSION);
+}
+
static void do_info_network(void)
{
int i, j;
@@ -864,6 +869,8 @@ static term_cmd_t term_cmds[] = {
};
static term_cmd_t info_cmds[] = {
+ { "version", "", do_info_version,
+ "", "show the version of qemu" },
{ "network", "", do_info_network,
"", "show the network state" },
{ "block", "", do_info_block,