Skip to contentSkip to conversation

monitor: Revert do_migrate_set_speed() conversion

Qemu-devel Luiz Capitulino 2 participants 2 messages Dec 18, 2009

lore
Share & tools
lore
#0 lore raw

This reverts commit 3a4921. do_migrate_set_speed() accepts a suffix for the 'value' argument and this is not good for QMP.

We will have to add a new argument type to handle that and this will have to wait for 0.13.

---
 migration.c     |    2 +-
 migration.h     |    2 +-
 qemu-monitor.hx |    3 +--
 3 files changed, 3 insertions(+), 4 deletions(-)
migration.c +1 -1
index fda61e6..598f8df 100644
@@ -106,7 +106,7 @@ void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data)
         s->cancel(s);
 }
 
-void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data)
+void do_migrate_set_speed(Monitor *mon, const QDict *qdict)
 {
     double d;
     char *ptr;
migration.h +1 -1
index 3ac208b..cbd456b 100644
@@ -56,7 +56,7 @@ void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data);
 
 void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data);
 
-void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data);
+void do_migrate_set_speed(Monitor *mon, const QDict *qdict);
 
 uint64_t migrate_max_downtime(void);
 
qemu-monitor.hx +1 -2
index aac0f3e..1aa7818 100644
@@ -763,8 +763,7 @@ ETEXI
         .args_type  = "value:s",
         .params     = "value",
         .help       = "set maximum speed (in bytes) for migrations",
-        .user_print = monitor_user_noop,
-        .mhandler.cmd_new = do_migrate_set_speed,
+        .mhandler.cmd = do_migrate_set_speed,
     },
 
 STEXI
Signature · 1 line
1.6.6.rc3
#1 lore raw
Quoted 8 lines · Luiz Capitulino

This reverts commit 3a4921. do_migrate_set_speed() accepts a suffix for the 'value' argument and this is not good for QMP.

We will have to add a new argument type to handle that and this will have to wait for 0.13.

Yes, this is what we should do for 0.12.