From: Stefano Stabellini Date: Wed, 22 Sep 2010 16:27:21 +0000 (+0100) Subject: libxl: do not modify static-max after domain creation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11446 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4edf6e82b78a1cc56932d8aeabe769ddca39a404;p=xen.git libxl: do not modify static-max after domain creation static-max represents the maximum memory the domain can ever have, therefore it shouldn't be changed after domain creation. [adjusted to cope with code movement since patch series written -iwj] Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index ab92e53a41..bec0b28318 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2768,9 +2768,6 @@ int libxl_domain_setmaxmem(libxl_ctx *ctx, uint32_t domid, uint32_t max_memkb) goto out; } - if (domid != 0) - libxl__xs_write(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/memory/static-max", dompath), "%"PRIu32, max_memkb); - rc = 0; out: libxl__free_all(&gc);