summaryrefslogtreecommitdiffstats
path: root/qemu-monitor.hx
diff options
context:
space:
mode:
authorLuiz Capitulino2009-12-18 16:25:05 +0100
committerAnthony Liguori2009-12-19 15:26:03 +0100
commit3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d (patch)
tree265fd9966af288ed706bf52ea8b2102f55c20ddb /qemu-monitor.hx
parentmonitor: Introduce 'M' argument type (diff)
downloadqemu-3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d.tar.gz
qemu-3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d.tar.xz
qemu-3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d.zip
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 <lcapitulino@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 338e30e7d0..aac0f3e510 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -887,7 +887,7 @@ ETEXI
{
.name = "balloon",
- .args_type = "value:i",
+ .args_type = "value:M",
.params = "target",
.help = "request VM to change it's memory allocation (in MB)",
.user_print = monitor_user_noop,