Patchwork [4/4] correct migrate_set_speed's args_type

login
register
mail settings
Submitter Luiz Capitulino
Date Dec. 6, 2010, 2:43 p.m.
Message ID <1291646631-4609-5-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/74376/
State New
Headers show

Comments

Luiz Capitulino - Dec. 6, 2010, 2:43 p.m.
From: Wen Congyang <wency@cn.fujitsu.com>

The args_type of migrate_set_speed in qmp-commands.hx is wrong.
When we set migrate speed by json, qemu will be core dumped.

This bug was caused by 07de3e60b05 and hence affects master only.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qmp-commands.hx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/qmp-commands.hx b/qmp-commands.hx
index e5f157f..3486223 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -495,7 +495,7 @@  EQMP
 
     {
         .name       = "migrate_set_speed",
-        .args_type  = "value:f",
+        .args_type  = "value:o",
         .params     = "value",
         .help       = "set maximum speed (in bytes) for migrations",
         .user_print = monitor_user_noop,