qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 07/11] QMP: Enable simple commands


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 07/11] QMP: Enable simple commands
Date: Tue, 23 Jun 2009 01:29:22 -0300

'cont', 'quit', 'stop', 'system_reset' and 'system_powerdown' are
so simple that enabling them in valid_control_cmd() is the only
step requered to port them.

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

diff --git a/monitor.c b/monitor.c
index df58bdd..ce836a9 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2504,7 +2504,12 @@ static int valid_control_cmd(Monitor *mon, const char 
*cmd,
                              const char *cmdline)
 {
     int i;
-    const char *valid_cmds[] = { NULL };
+    const char *valid_cmds[] = { "quit",
+                                 "cont",
+                                 "stop",
+                                 "system_reset",
+                                 "system_powerdown",
+                                 NULL };
     const char *valid_infos[] = { NULL };
 
     if (!monitor_ctrl_mode(mon)) {
-- 
1.6.3.GIT





reply via email to

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