diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-10-16 12:23:46 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:57 -0500 |
commit | 3a4921047d514c336531c304bec362c4d138ebcc (patch) | |
tree | 71f86fd7afa44954ec0cb984fee9e9dfeb944e4b | |
parent | 5f79da0037497aaa43ca82574b0c4e034010b871 (diff) |
monitor: Convert do_migrate_set_speed() to QObject
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | migration.c | 2 | ||||
-rw-r--r-- | migration.h | 2 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/migration.c b/migration.c index fb37d1bd65..9a40b37ca9 100644 --- a/migration.c +++ b/migration.c @@ -90,7 +90,7 @@ void do_migrate_cancel(Monitor *mon, const QDict *qdict) s->cancel(s); } -void do_migrate_set_speed(Monitor *mon, const QDict *qdict) +void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data) { double d; char *ptr; diff --git a/migration.h b/migration.h index 17ca9ff149..40bd610a32 100644 --- a/migration.h +++ b/migration.h @@ -54,7 +54,7 @@ void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data); void do_migrate_cancel(Monitor *mon, const QDict *qdict); -void do_migrate_set_speed(Monitor *mon, const QDict *qdict); +void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data); uint64_t migrate_max_downtime(void); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 8e7bfd4b44..af1bae5850 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -753,7 +753,8 @@ ETEXI .args_type = "value:s", .params = "value", .help = "set maximum speed (in bytes) for migrations", - .mhandler.cmd = do_migrate_set_speed, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_migrate_set_speed, }, STEXI |