summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-12-18 13:24:59 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-19 08:26:01 -0600
commit43e713ce93600ccdb4dd0cc54ff5a087b38eb91e (patch)
tree1567422376efd0a76df40cbf222daae0169d466a /monitor.c
parent82c09f2f0d0f405428ce0c567da2ada493acc30b (diff)
downloadqemu-43e713ce93600ccdb4dd0cc54ff5a087b38eb91e.tar.gz
QMP: Only handle converted commands
Looks like I dropped this check when addressing the 'query-' commands request. QMP should only handle converted commands, obviously. Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 96f7876d96..f4d77e2dd2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4070,7 +4070,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens)
qobject_from_jsonf("{ 'item': %s }", info_item));
} else {
cmd = monitor_find_command(cmd_name);
- if (!cmd) {
+ if (!cmd || !monitor_handler_ported(cmd)) {
qemu_error_new(QERR_COMMAND_NOT_FOUND, cmd_name);
goto err_input;
}