aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-19 15:17:08 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-19 15:17:08 +0000
commitc35734b2a6f9b028edacd5813ff271728ce2a9e3 (patch)
tree912fb17654bdcc79592e1462cd86139ce5e7a78a /monitor.c
parentdcfb90144bd83a13e24f214e0c4a1b0b55067289 (diff)
downloadqemu-c35734b2a6f9b028edacd5813ff271728ce2a9e3.zip
qemu-c35734b2a6f9b028edacd5813ff271728ce2a9e3.tar.gz
qemu-c35734b2a6f9b028edacd5813ff271728ce2a9e3.tar.bz2
Add -name option, by Anthony Liguori.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2505 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index de0783b..3797333 100644
--- a/monitor.c
+++ b/monitor.c
@@ -235,6 +235,12 @@ static void do_info_version(void)
term_printf("%s\n", QEMU_VERSION);
}
+static void do_info_name(void)
+{
+ if (qemu_name)
+ term_printf("%s\n", qemu_name);
+}
+
static void do_info_block(void)
{
bdrv_info();
@@ -1314,6 +1320,8 @@ static term_cmd_t info_cmds[] = {
"", "show which guest mouse is receiving events" },
{ "vnc", "", do_info_vnc,
"", "show the vnc server status"},
+ { "name", "", do_info_name,
+ "", "show the current VM name" },
#if defined(TARGET_PPC)
{ "cpustats", "", do_info_cpu_stats,
"", "show CPU statistics", },