search for: libxl_set_memory_target

Displaying 6 results from an estimated 6 matches for "libxl_set_memory_target".

2011 Feb 01
1
[PATCH] libxl: fix unsafe subtraction in libxl_set_memory_target
The current libxl_set_memory_target function subtracts a negative amount from an uint32_t variable without checking if the operation wraps around. This patch fixes this bug (that I previously believed to be an hypervisor issue): http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1729 Signed-off-by: Stefano Stabellini <stefa...
2010 May 07
9
[PATCH] xl: Update memory info in xenstore when use ''xl mem-set''
''xl mem-set'' should update memory info in xenstore''s vm info. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com> diff -r ccae861f52f7 -r 5847ce53f5dc tools/libxl/libxl.c --- a/tools/libxl/libxl.c Thu May 06 11:59:55 2010 +0100 +++ b/tools/libxl/libxl.c Sat May 08 01:38:51 2010 +0800 @@ -2290,11 +2290,22 @@ uint32_t videoram; char *videoram_s = NULL;
2013 Apr 04
28
[PATCH v3 0/3] libxl: memory management patches
Hi, Here are three small but important libxl/xl memory management patches: - libxl: xl mem-max et consortes must update static-max in xenstore too, - xl: Allow user to configure xl mem-set behavior, - xl: Improve xl documentation in regards to guest memory management. Daniel
2013 Jul 06
0
xl and autoballooning
...t; on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' When I tried to start the DomU, I got the following: # xl create /etc/xen/template.vm -c Parsing config from /etc/xen/template.vm libxl: error: libxl.c:3437:libxl_set_memory_target: new target 18620 for dom0 is below the minimum threshold Setting autoballoon=0 in /etc/xen/xl.conf fixed the bug - however xl shouldn''t even attempt to balloon the Dom0 when free_memory > required memory. Thoughts? -- Steven Haigh Email: netwiz@crc.id.au Web: https://www.crc.id...
2010 Aug 13
3
[PATCH] xl: make libxl_uuid2string internal to libxenlight
...libxl_domain_preserve(libxl_ctx *ctx return ERROR_NOMEM; } - uuid_string = libxl_uuid2string(ctx, new_uuid); + uuid_string = libxl_uuid2string(&gc, new_uuid); if (!uuid_string) { libxl_free_all(&gc); return ERROR_NOMEM; @@ -2785,7 +2785,7 @@ int libxl_set_memory_target(libxl_ctx *c if (rc != 1 || info.domain != domid) goto out; xcinfo2xlinfo(&info, &ptr); - uuid = libxl_uuid2string(ctx, ptr.uuid); + uuid = libxl_uuid2string(&gc, ptr.uuid); libxl_xs_write(&gc, XBT_NULL, libxl_sprintf(&gc, "/vm/%s/memory",...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...y/static-max", dompath), "%"PRIu32, max_memkb); - - return 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); + return rc; } int libxl_set_memory_target(libxl_ctx *ctx, uint32_t domid, uint32_t target_memkb, int enforce) { - int rc = 0; + libxl_gc gc = LIBXL_INIT_GC(ctx); + int rc = 1; uint32_t memorykb = 0, videoram = 0; char *memmax, *endptr, *videoram_s = NULL; - char *dompath = libxl_xs_get_dompath(ctx, domid); + char...