From 3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Fri, 18 Dec 2009 13:25:05 -0200 Subject: monitor: do_balloon(): Use 'M' argument type This makes do_balloon() accept megabyte values from the user Monitor while accepting byte values for QMP. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- monitor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 53a4674..c0dc48e 100644 --- a/monitor.c +++ b/monitor.c @@ -2083,8 +2083,7 @@ static void do_balloon(Monitor *mon, const QDict *qdict, QObject **ret_data) { if (balloon_get_value()) { /* ballooning is active */ - ram_addr_t value = qdict_get_int(qdict, "value"); - qemu_balloon(value << 20); + qemu_balloon(qdict_get_int(qdict, "value")); } } -- cgit v1.1