From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRgT-0008Uw-Hi for qemu-devel@nongnu.org; Mon, 02 Mar 2015 09:51:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSRgO-00022F-Gj for qemu-devel@nongnu.org; Mon, 02 Mar 2015 09:51:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRgO-00020b-AM for qemu-devel@nongnu.org; Mon, 02 Mar 2015 09:50:56 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t22EosoF016583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 2 Mar 2015 09:50:54 -0500 Date: Mon, 2 Mar 2015 15:50:19 +0100 From: Peter Krempa Message-ID: <20150302145019.GL681446@andariel.home> References: <1424980156-25556-1-git-send-email-lcapitulino@redhat.com> <1424980156-25556-2-git-send-email-lcapitulino@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V3eawNQxI9TAjvgi" Content-Disposition: inline In-Reply-To: <1424980156-25556-2-git-send-email-lcapitulino@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: imammedo@redhat.com, qemu-devel@nongnu.org --V3eawNQxI9TAjvgi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 26, 2015 at 14:49:15 -0500, Luiz Capitulino wrote: > Add memory hotplug options to the command-line format. Also, > add a complete command-line example and improve description. >=20 > Signed-off-by: Luiz Capitulino > --- > qemu-options.hx | 23 ++++++++++++++++++----- > 1 file changed, 18 insertions(+), 5 deletions(-) >=20 > diff --git a/qemu-options.hx b/qemu-options.hx > index 85ca3ad..1634175 100644 > --- a/qemu-options.hx > +++ b/qemu-options.hx > @@ -237,12 +237,25 @@ DEF("m", HAS_ARG, QEMU_OPTION_m, > "NOTE: Some architectures might enforce a specific granularity\n", > QEMU_ARCH_ALL) > STEXI > -@item -m [size=3D]@var{megs} > +@item -m [size=3D]@var{megs}[,slots=3Dn,maxmem=3Dsize] > @findex -m > -Set virtual RAM size to @var{megs} megabytes. Default is 128 MiB. Optio= nally, > -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{max= mem} > +could be used to set amount of hotpluggable memory slots and maximum amo= unt of > +memory. > + > +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: > + > +@example > +qemy-system-i386 -m 1G,slots=3D3,maxmem=3D4G > +@end example > + > +If @var{slots} and @var{maxmem} are not specified, memory hotplug won't > +be enabled and the guest startup RAM will never increase (although it can > +be decreased with the use of ballooning). > ETEXI It might be also worth noting that maxmem has to be aligned to the page size. See: http://lists.gnu.org/archive/html/qemu-devel/2015-01/msg04345.html (unfortunately it was not merged yet for some reason ...) Peter --V3eawNQxI9TAjvgi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU9HirAAoJEDbsFqzQGGgrE4MP/iWcuwtTCCO5aXkE5ujeWU50 ZPgbDL3fxx4UX6yuh2FiWCUAGtqr7mBJzmdkjEcZZcK2I6UVmW1S+MXpeLthckhe SfJ6dvrXxTheMpabsf/suy8nEdEEHsFn1m6JogdSsYVla+9StjJnJwqbGAKCUDMR ppR4Oa154FOEcaVT8mESSjc2xtWm0OwS8IAL7nds2tB2d1Bveb/5gzTWtGVdrVeA Sxet4fKSVTSXoonNZlE0tVnvFTh/tHxE8yYgadC+4kLsV0BckUfUjh+YhCC4gkpx 9VJ3XJNSXr65vEZBnWoLnE/p4/uNf/b7C1R+L8VSMH6GNf5J4jBBjvT5wY1Lzp86 jFcy4RlvNVtcQzOOrJJqBa5aB2zd3blRqYBVxBaavCozxuczjvZzBa6uOeYXKOzg bwm9Ub8u0znZ3nUVZvxxpFa9DcD9jt42n5Mz3YVKnOykbmtVDEoT8c+Csrspnem4 RKvM1ep3zb0Er2p2ovnNP9ipc7M47NFzlPS39jkviZC0++XagomivdC0VU3Ox1G8 VcRR6ihH2tnxchZFQsJbg/z+zMUf9t93JNslUXvJLSdLM/di/ns1cM0dFEW25nYJ Tloa16EvoAiEWwZoalZCIA1ZuHN6x6mRBqo+qfTPFCI8IjKHGuC9ADUlaQVZ1ykt Rll1DnSoF7NJAhDtTZHI =8oBo -----END PGP SIGNATURE----- --V3eawNQxI9TAjvgi--