summaryrefslogtreecommitdiffstats
path: root/qemu-monitor.hx
diff options
context:
space:
mode:
authorMarkus Armbruster2010-01-25 14:23:04 +0100
committerAnthony Liguori2010-02-03 19:36:26 +0100
commit5667c493c430256c99002b719383f0e911cb53a8 (patch)
tree0a8bdc5095e4d2ac855e05549c3856d728821a16 /qemu-monitor.hx
parentmonitor: New argument type 'b' (diff)
downloadqemu-5667c493c430256c99002b719383f0e911cb53a8.tar.gz
qemu-5667c493c430256c99002b719383f0e911cb53a8.tar.xz
qemu-5667c493c430256c99002b719383f0e911cb53a8.zip
monitor: Use argument type 'b' for migrate_set_speed
Before, it used type 's', which strips quotes and interprets escapes, and is quite inappropriate for QMP. Negative arguments are no flushed to zero. Before, they were cast to uint32_t, which wrecked the sign. Ridiculously large arguments including infinities are now rejected. Before, they were interpreted as zero. Same for NaN. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-monitor.hx')
-rw-r--r--qemu-monitor.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index b51bb47f25..b30301e7d5 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -761,7 +761,7 @@ ETEXI
{
.name = "migrate_set_speed",
- .args_type = "value:s",
+ .args_type = "value:b",
.params = "value",
.help = "set maximum speed (in bytes) for migrations",
.mhandler.cmd = do_migrate_set_speed,