search for: libxl_xs_get_dompath

Displaying 4 results from an estimated 4 matches for "libxl_xs_get_dompath".

2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...return ERROR_FAIL; } ret = xc_cpupool_movedomain(ctx->xch, info->poolid, *domid); if (ret < 0) { XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "domain move fail"); + libxl_free_all(&gc); return ERROR_FAIL; } - dom_path = libxl_xs_get_dompath(ctx, *domid); - if (!dom_path) + dom_path = libxl_xs_get_dompath(&gc, *domid); + if (!dom_path) { + libxl_free_all(&gc); return ERROR_FAIL; - - vm_path = libxl_sprintf(ctx, "/vm/%s", uuid_string); + } + + vm_path = libxl_sprintf(&gc, "/vm...
2010 May 07
9
[PATCH] xl: Update memory info in xenstore when use ''xl mem-set''
...<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; char *dompath = libxl_xs_get_dompath(ctx, domid); + xc_domaininfo_t info; + struct libxl_dominfo ptr; + char *uuid; videoram_s = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/memory/videoram", dompath)); videoram = videoram_s ? atoi(videoram_s) : 0; libxl_xs_write(ctx, XBT_NULL, libxl_sprint...
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...d using strerror) in the messages passed to the application''s logging callback. * Use the new errno-including logging functions everywhere where appropriate. In general, xc_... functions return errno values or 0; xs_... functions return 0 or -1 (or some such) setting errno. * When libxl_xs_get_dompath fails, do not treat it as an allocation error. It isn''t: it usually means xenstored failed. * Remove many spurious \n''s from log messages. (The applications log callback is expected to add a \n if it wants to do that, so libxl''s logging functions should be passes...
2010 Sep 02
7
[PATCH] libxl: make libxl communicate with xenstored by socket or xenbus driver
Hi, George sent a patch on this problem before, but it was not completed. This patch makes libxl use xenbus to communicate with xenstored if libxl cannot open a socket. There''s a place that does not close fd in the case of failure, which is also fixed in this patch. -----------------------------------------Patch------------------------------------------------------ diff -r eff592364826