qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/5] Add "info uuid" command to monitor.


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 3/5] Add "info uuid" command to monitor.
Date: Thu, 05 Jun 2008 10:14:39 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Reviewed-by: Anthony Liguori <address@hidden>

Regards,

Anthony Liguori

Gleb Natapov wrote:
Signed-off-by: Gleb Natapov <address@hidden>
---

 monitor.c |    8 ++++++++
 sysemu.h  |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/monitor.c b/monitor.c
index e6abcdd..9233625 100644
--- a/monitor.c
+++ b/monitor.c
@@ -254,6 +254,12 @@ static void do_info_name(void)
         term_printf("%s\n", qemu_name);
 }
+static void do_info_uuid(void)
+{
+    if (qemu_uuid_str)
+        term_printf("%s\n", qemu_uuid_str);
+}
+
 static void do_info_block(void)
 {
     bdrv_info();
@@ -1442,6 +1448,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", },
diff --git a/sysemu.h b/sysemu.h
index f666f73..474091a 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -8,6 +8,7 @@ extern const char *bios_dir;
extern int vm_running;
 extern const char *qemu_name;
+extern const char *qemu_uuid_str;
typedef struct vm_change_state_entry VMChangeStateEntry;
 typedef void VMChangeStateHandler(void *opaque, int running);








reply via email to

[Prev in Thread] Current Thread [Next in Thread]