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