mirror of https://gitee.com/openkylin/qemu.git
monitor: convert do_migrate_set_speed() to QObject
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5667c493c4
commit
5fd9083cd8
|
@ -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)
|
||||
void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data)
|
||||
{
|
||||
double d;
|
||||
FdMigrationState *s;
|
||||
|
|
|
@ -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);
|
||||
void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data);
|
||||
|
||||
uint64_t migrate_max_downtime(void);
|
||||
|
||||
|
|
|
@ -764,7 +764,8 @@ ETEXI
|
|||
.args_type = "value:b",
|
||||
.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
|
||||
|
|
Loading…
Reference in New Issue