diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:30:20 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:30:20 +0000 |
commit | 398f0f1e6332f97d30e230f9d2ef523523a0be7e (patch) | |
tree | fef6fc9084af68ca878bdd6661da1ad6896cfa2e | |
parent | 17d2824265fd423b65fc55d0e1c3ceaac2c75fac (diff) | |
download | qemu-398f0f1e6332f97d30e230f9d2ef523523a0be7e.tar.gz qemu-398f0f1e6332f97d30e230f9d2ef523523a0be7e.tar.bz2 qemu-398f0f1e6332f97d30e230f9d2ef523523a0be7e.zip |
Add "info uuid" command to monitor (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5258 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | monitor.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -249,6 +249,15 @@ static void do_info_name(void) term_printf("%s\n", qemu_name); } +static void do_info_uuid(void) +{ + term_printf(UUID_FMT "\n", qemu_uuid[0], qemu_uuid[1], qemu_uuid[2], + qemu_uuid[3], qemu_uuid[4], qemu_uuid[5], qemu_uuid[6], + qemu_uuid[7], qemu_uuid[8], qemu_uuid[9], qemu_uuid[10], + qemu_uuid[11], qemu_uuid[12], qemu_uuid[13], qemu_uuid[14], + qemu_uuid[15]); +} + static void do_info_block(void) { bdrv_info(); @@ -1497,6 +1506,8 @@ static term_cmd_t info_cmds[] = { "", "show the vnc server status"}, { "name", "", do_info_name, "", "show the current VM name" }, + { "uuid", "", do_info_uuid, + "", "show the current VM UUID" }, #if defined(TARGET_PPC) { "cpustats", "", do_info_cpu_stats, "", "show CPU statistics", }, |