1 Sep 2008 09:25
[PATCH v4 3/8] Add "info uuid" command to monitor.
Gleb Natapov <gleb <at> qumranet.com>
2008-09-01 07:25:46 GMT
2008-09-01 07:25:46 GMT
Signed-off-by: Gleb Natapov <gleb <at> qumranet.com>
---
monitor.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 43b188a..dfcf025 100644
--- a/monitor.c
+++ b/monitor.c
<at> <at> -253,6 +253,15 <at> <at> 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();
<at> <at> -1501,6 +1510,8 <at> <at> static term_cmd_t info_cmds[] = {
"", "show the vnc server status"},
{ "name", "", do_info_name,
"", "show the current VM name" },
(Continue reading)
RSS Feed