aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-01-25 14:23:08 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-03 12:36:26 -0600
commitc6027f56dc547b5028f0b560bcf4671b6e2a765d (patch)
tree7f4eb9c5b9247e9b2e0c2254e936dc25b580e64f
parentb0fbf7d3420f5f66be9728b1b070846bb054c872 (diff)
downloadqemu-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.c3
-rw-r--r--migration.h3
-rw-r--r--qemu-monitor.hx3
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