diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-01-25 14:23:08 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-03 12:36:26 -0600 |
commit | c6027f56dc547b5028f0b560bcf4671b6e2a765d (patch) | |
tree | 7f4eb9c5b9247e9b2e0c2254e936dc25b580e64f | |
parent | b0fbf7d3420f5f66be9728b1b070846bb054c872 (diff) | |
download | qemu-c6027f56dc547b5028f0b560bcf4671b6e2a765d.zip qemu-c6027f56dc547b5028f0b560bcf4671b6e2a765d.tar.gz qemu-c6027f56dc547b5028f0b560bcf4671b6e2a765d.tar.bz2 |
monitor: convert do_migrate_set_downtime() to QObject
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | migration.c | 3 | ||||
-rw-r--r-- | migration.h | 3 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/migration.c b/migration.c index 7551953..5b28e42 100644 --- a/migration.c +++ b/migration.c @@ -132,7 +132,8 @@ uint64_t migrate_max_downtime(void) return max_downtime; } -void do_migrate_set_downtime(Monitor *mon, const QDict *qdict) +void do_migrate_set_downtime(Monitor *mon, const QDict *qdict, + QObject **ret_data) { double d; diff --git a/migration.h b/migration.h index 3ac208b..65572c1 100644 --- a/migration.h +++ b/migration.h @@ -60,7 +60,8 @@ void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data); uint64_t migrate_max_downtime(void); -void do_migrate_set_downtime(Monitor *mon, const QDict *qdict); +void do_migrate_set_downtime(Monitor *mon, const QDict *qdict, + QObject **ret_data); void do_info_migrate_print(Monitor *mon, const QObject *data); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 2bf89c7..e5bff8e 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -778,7 +778,8 @@ ETEXI .args_type = "value:T", .params = "value", .help = "set maximum tolerated downtime (in seconds) for migrations", - .mhandler.cmd = do_migrate_set_downtime, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_migrate_set_downtime, }, STEXI |