From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Kiper Subject: [PATCH 1/2] libxl: xl mem-max et consortes must update static-max in xenstore too Date: Fri, 15 Mar 2013 17:25:01 +0100 Message-ID: <1363364702-12885-2-git-send-email-daniel.kiper@oracle.com> References: <1363364702-12885-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1363364702-12885-1-git-send-email-daniel.kiper@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.campbell@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xensource.com Cc: Daniel Kiper List-Id: xen-devel@lists.xenproject.org xl mem-max et consortes must update static-max in xenstore too. Without this patch there is no chance to increase memory reservation for given domain above memory limit defined in config file. It means that memory hotplug is practicaly unusable without this patch. Signed-off-by: Daniel Kiper --- tools/libxl/libxl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index a09c0fa..5edeaa6 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -3480,6 +3480,9 @@ int libxl_domain_setmaxmem(libxl_ctx *ctx, uint32_t domid, uint32_t max_memkb) goto out; } + libxl__xs_write(gc, XBT_NULL, libxl__sprintf(gc, "%s/memory/static-max", + dompath), "%"PRIu32, max_memkb); + rc = 0; out: GC_FREE; -- 1.7.10.4