qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 08/11] QMP: Port balloon command


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 08/11] QMP: Port balloon command
Date: Tue, 23 Jun 2009 01:29:33 -0300

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/monitor.c b/monitor.c
index ce836a9..84d4399 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1662,12 +1662,12 @@ static void do_info_balloon(Monitor *mon)
 
     actual = qemu_balloon_status();
     if (kvm_enabled() && !kvm_has_sync_mmu())
-        monitor_printf(mon, "Using KVM without synchronous MMU, "
+        monitor_printf_err(mon, "Using KVM without synchronous MMU, "
                        "ballooning disabled\n");
     else if (actual == 0)
-        monitor_printf(mon, "Ballooning not activated in VM\n");
+        monitor_printf_err(mon, "Ballooning not activated in VM\n");
     else
-        monitor_printf(mon, "balloon: actual=%d\n", (int)(actual >> 20));
+        monitor_printf_data(mon, "balloon: actual=%d\n", (int)(actual >> 20));
 }
 
 static void do_acl(Monitor *mon,
@@ -2509,8 +2509,10 @@ static int valid_control_cmd(Monitor *mon, const char 
*cmd,
                                  "stop",
                                  "system_reset",
                                  "system_powerdown",
+                                 "balloon",
+                                 NULL };
+    const char *valid_infos[] = { "balloon",
                                  NULL };
-    const char *valid_infos[] = { NULL };
 
     if (!monitor_ctrl_mode(mon)) {
         /* all commands are valid in user-mode mode */
-- 
1.6.3.GIT





reply via email to

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