debuggers.hg
changeset 22242:4f90c1fde133
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>
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>
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> |
---|---|
date | Wed Sep 22 17:27:21 2010 +0100 (2010-09-22) |
parents | 68cd8ae1b620 |
children | a0044f16d3df |
files | tools/libxl/libxl.c |
line diff
1.1 --- a/tools/libxl/libxl.c Wed Sep 22 17:23:22 2010 +0100 1.2 +++ b/tools/libxl/libxl.c Wed Sep 22 17:27:21 2010 +0100 1.3 @@ -2768,9 +2768,6 @@ int libxl_domain_setmaxmem(libxl_ctx *ct 1.4 goto out; 1.5 } 1.6 1.7 - if (domid != 0) 1.8 - libxl__xs_write(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/memory/static-max", dompath), "%"PRIu32, max_memkb); 1.9 - 1.10 rc = 0; 1.11 out: 1.12 libxl__free_all(&gc);