xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/libxl: modify static-max in xenstore when setting maxmem
@ 2017-01-18 18:25 Juergen Gross
  2017-01-19 11:51 ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Juergen Gross @ 2017-01-18 18:25 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, wei.liu2, ian.jackson

xl mem-max is setting the hypervisor memory limit of a domain, but not
the memory/static-max value in Xenstore. This prohibits setting the
memory size above the old maximum size.

Set the new maximum value in Xenstore.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 tools/libxl/libxl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 0622311..f59ec42 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4077,6 +4077,9 @@ int libxl_domain_setmaxmem(libxl_ctx *ctx, uint32_t domid, uint64_t max_memkb)
         goto out;
     }
 
+    libxl__xs_printf(gc, XBT_NULL, GCSPRINTF("%s/memory/static-max", dompath),
+                     "%"PRIu64, max_memkb);
+
     rc = 0;
 out:
     libxl_domain_config_dispose(&d_config);
-- 
2.10.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-19 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18 18:25 [PATCH] tools/libxl: modify static-max in xenstore when setting maxmem Juergen Gross
2017-01-19 11:51 ` Wei Liu
2017-01-19 12:51   ` Juergen Gross
2017-01-19 15:17     ` Juergen Gross

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).