correct migrate_set_speed's args_type
authorWen Congyang <wency@cn.fujitsu.com>
Thu, 25 Nov 2010 01:06:05 +0000 (09:06 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 6 Dec 2010 11:51:41 +0000 (09:51 -0200)
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

index e5f157fe1097f122cade28f6900ae423359e9665..3486223517946b1c499c0a43f4cebea9a8a3329d 100644 (file)
@@ -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,