monitor: Use argument type 'b' for migrate_set_speed
commit5667c493c430256c99002b719383f0e911cb53a8
authorMarkus Armbruster <armbru@redhat.com>
Mon, 25 Jan 2010 13:23:04 +0000 (25 14:23 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 3 Feb 2010 18:36:26 +0000 (3 12:36 -0600)
tree0a8bdc5095e4d2ac855e05549c3856d728821a16
parent3350a4dd07cf735c323655cd3c2119283ff9347e
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>
migration.c
qemu-monitor.hx