mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
6f566d1367
commit
4edf6e82b7
1 file changed
-3
@@ -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);
|
||||
|
||||