[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] qemu-options.hx: improve -m description
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 4/5] qemu-options.hx: improve -m description |
Date: |
Wed, 4 Mar 2015 14:13:34 -0500 |
Add memory hotplug options to the command-line format. Also,
add a complete command-line example and improve description.
Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Paulo Vital <address@hidden>
---
qemu-options.hx | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 85ca3ad..b0345ae 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -237,12 +237,24 @@ DEF("m", HAS_ARG, QEMU_OPTION_m,
"NOTE: Some architectures might enforce a specific granularity\n",
QEMU_ARCH_ALL)
STEXI
address@hidden -m address@hidden
address@hidden -m address@hidden,slots=n,maxmem=size]
@findex -m
-Set virtual RAM size to @var{megs} megabytes. Default is 128 MiB. Optionally,
-a suffix of ``M'' or ``G'' can be used to signify a value in megabytes or
-gigabytes respectively. Optional pair @var{slots}, @var{maxmem} could be used
-to set amount of hotluggable memory slots and possible maximum amount of
memory.
+Sets guest startup RAM size to @var{megs} megabytes. Default is 128 MiB.
+Optionally, a suffix of ``M'' or ``G'' can be used to signify a value in
+megabytes or gigabytes respectively. Optional pair @var{slots}, @var{maxmem}
+could be used to set amount of hotpluggable memory slots and maximum amount of
+memory. Note that @var{maxmem} must be aligned to the page size.
+
+For example, the following command-line sets the guest startup RAM size to
+1GB, creates 3 slots to hotplug additional memory and sets the maximum
+memory the guest can reach to 4GB:
+
address@hidden
+qemu-system-x86_64 -m 1G,slots=3,maxmem=4G
address@hidden example
+
+If @var{slots} and @var{maxmem} are not specified, memory hotplug won't
+be enabled and the guest startup RAM will never increase.
ETEXI
DEF("mem-path", HAS_ARG, QEMU_OPTION_mempath,
--
1.9.3
- [Qemu-devel] [PULL 0/5] QMP queue, Luiz Capitulino, 2015/03/04
- [Qemu-devel] [PULL 1/5] pc-dimm: add a function to calculate VM's current RAM size, Luiz Capitulino, 2015/03/04
- [Qemu-devel] [PULL 2/5] virtio-balloon: Fix balloon not working correctly when hotplug memory, Luiz Capitulino, 2015/03/04
- [Qemu-devel] [PULL 3/5] virtio-balloon: Add some trace events, Luiz Capitulino, 2015/03/04
- [Qemu-devel] [PULL 4/5] qemu-options.hx: improve -m description,
Luiz Capitulino <=
- [Qemu-devel] [PULL 5/5] docs: add memory-hotplug.txt, Luiz Capitulino, 2015/03/04
- Re: [Qemu-devel] [PULL 0/5] QMP queue, Peter Maydell, 2015/03/08