]> xenbits.xensource.com Git - people/royger/xen.git/commit
tools: add --maxmem parameter to init-xenstore-domain
authorJuergen Gross <jgross@suse.com>
Mon, 8 Aug 2016 08:28:27 +0000 (10:28 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 6 Sep 2016 10:19:19 +0000 (11:19 +0100)
commit80dd5b401eb4e99f963ac8103424ddfd5274a837
tree8b17532c017ec938795a95fc05b5fcf394e9b241
parent44b2829a8b97a8b04e063a93303dbe3a468642e3
tools: add --maxmem parameter to init-xenstore-domain

Add a parameter to specify the maximum memory size of the xenstore
domain. In case the xenstore domain supports ballooning it will be
capable to adjust its own size according to its memory needs.

The maximum memory size can be specified as an absolute value in
MiB, as a fraction of the host's memory, or as a combination of
both (the maximum of the absolute and the fraction value):

--maxmem <m>             maxmem is <m> MiB
--maxmem <a>/<b>         maxmem is hostmem * a / b
--maxmem <m>:<a>/<b>     maxmem is max(<m> MiB, hostmem * a / b)

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/helpers/init-xenstore-domain.c