Luiz Capitulino 911628498c hmp: fix bad value conversion for M type
The M type converts from megabytes to bytes. However, the value can be
negative before the conversion, which will lead to a flawed conversion.

For example, this:

 (qemu) balloon -1000000000000011
 (qemu)

Just "works", but the value passed by the balloon command will be
something else.

This patch fixes this problem by requering a positive value before
converting. There's really no reason to accept a negative value for
the M type.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2012-05-08 14:30:22 -03:00
2012-05-01 00:17:27 +02:00
2012-05-02 18:39:39 +02:00
2012-05-01 19:08:44 -03:00
2012-05-01 10:58:04 +00:00
2012-04-26 13:14:58 -05:00
2012-05-03 10:45:04 +02:00
2012-04-27 11:44:50 -03:00
2012-05-01 10:45:02 +00:00
2012-05-03 10:45:04 +02:00
2012-05-08 14:30:09 -03:00
2012-04-26 13:14:58 -05:00
2012-05-08 14:29:14 -03:00
2012-04-26 13:14:58 -05:00
2012-05-01 00:17:27 +02:00
2012-05-01 00:17:27 +02:00
2012-04-26 13:14:58 -05:00
2012-05-08 14:30:09 -03:00
2012-05-02 07:32:09 -05:00
2012-05-08 14:30:22 -03:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%