From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xen.org
Cc: Juergen Gross <jgross@suse.com>,
wei.liu2@citrix.com, ian.jackson@eu.citrix.com,
stefano.stabellini@eu.citrix.com
Subject: [PATCH 3/3] tools: add config parameter for maximum memory of xenstore domain
Date: Mon, 8 Aug 2016 10:28:29 +0200 [thread overview]
Message-ID: <1470644909-22859-4-git-send-email-jgross@suse.com> (raw)
In-Reply-To: <1470644909-22859-1-git-send-email-jgross@suse.com>
Add a parameter to xencommons configuration file for specifying the
maximum memory size of the xenstore domain.
Signed-off-by: Juergen Gross <jgross@suse.com>
---
tools/hotplug/Linux/init.d/sysconfig.xencommons.in | 11 +++++++++++
tools/hotplug/Linux/launch-xenstore.in | 1 +
2 files changed, 12 insertions(+)
diff --git a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
index cc8185c..92569cd 100644
--- a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
+++ b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
@@ -70,6 +70,17 @@ XENSTORED_ARGS=
#XENSTORE_DOMAIN_SIZE=8
## Type: string
+## Default: not set, no autoballooning of xenstore domain
+#
+# Maximum xenstore domain memory size. Can be specified as:
+# - plain integer value for max size in MiB
+# - fraction of host memory, e.g. 1/100
+# - combination of both in form of <val>:<frac> (e.g. 8:1/100), resulting
+# value will be the higher of both specifications
+# Only evaluated if XENSTORETYPE is "domain".
+#XENSTORE_MAX_DOMAIN_SIZE=
+
+## Type: string
## Default: ""
#
# Additional arguments for starting the xenstore domain.
diff --git a/tools/hotplug/Linux/launch-xenstore.in b/tools/hotplug/Linux/launch-xenstore.in
index 46defd6..01193be 100644
--- a/tools/hotplug/Linux/launch-xenstore.in
+++ b/tools/hotplug/Linux/launch-xenstore.in
@@ -75,6 +75,7 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons && . @CONFIG_DIR@/@CONFIG_LEAF
XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --kernel $XENSTORE_DOMAIN_KERNEL"
[ -z "$XENSTORE_DOMAIN_SIZE" ] && XENSTORE_DOMAIN_SIZE=8
XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --memory $XENSTORE_DOMAIN_SIZE"
+ [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] || XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE"
echo -n Starting $XENSTORE_DOMAIN_KERNEL...
${LIBEXEC_BIN}/init-xenstore-domain $XENSTORE_DOMAIN_ARGS || exit 1
--
2.6.6
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-08-08 8:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 8:28 [PATCH 0/3] tools: support autoballooning of xenstore domain Juergen Gross
2016-08-08 8:28 ` [PATCH 1/3] tools: add --maxmem parameter to init-xenstore-domain Juergen Gross
2016-08-11 17:03 ` Wei Liu
2016-08-08 8:28 ` [PATCH 2/3] stubdom: add CONFIG_BALLOON to xenstore config Juergen Gross
2016-08-11 17:03 ` Wei Liu
2016-08-08 8:28 ` Juergen Gross [this message]
2016-08-11 17:03 ` [PATCH 3/3] tools: add config parameter for maximum memory of xenstore domain Wei Liu
2016-08-08 14:45 ` [PATCH 0/3] tools: support autoballooning " Ian Jackson
2016-08-08 17:31 ` Juergen Gross
2016-08-24 11:12 ` Wei Liu
2016-08-29 6:22 ` Juergen Gross
2016-08-29 8:52 ` Wei Liu
2016-09-06 10:09 ` [PATCH 0/3] tools: support autoballooning of xenstore domain [and 1 more messages] Ian Jackson
2016-09-06 10:45 ` Wei Liu
2016-09-06 10:01 ` [PATCH 0/3] tools: support autoballooning of xenstore domain Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470644909-22859-4-git-send-email-jgross@suse.com \
--to=jgross@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).