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 <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Stefano Stabellini committed 2010-09-22 17:27:21 +01:00
1 parent 6f566d1367
commit 4edf6e82b7
1 file changed
-3
-3
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.