Displaying 6 results from an estimated 6 matches for "xl_log_error".
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...90e4..5e2f23b 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -106,14 +106,17 @@ int libxl_domain_make(struct libxl_ctx *ctx, libxl_domain_create_info *info,
ret = xc_domain_create(ctx->xch, info->ssidref, handle, flags, domid);
if (ret < 0) {
- XL_LOG(ctx, XL_LOG_ERROR, "domain creation fail: %d", ret);
+ XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "domain creation fail");
return ERROR_FAIL;
}
dom_path = libxl_xs_get_dompath(ctx, *domid);
+ if (!dom_path)
+ return ERROR_FAIL;
+
vm_path = libxl_sprintf(ctx...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...x->alloc_ptrs = calloc(ctx->alloc_maxsize, sizeof(void *));
- if (!ctx->alloc_ptrs)
- return ERROR_NOMEM;
memset(&ctx->version_info, 0, sizeof(libxl_version_info));
ctx->xch = xc_interface_open(lg,lg,0);
if (!ctx->xch) {
XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, errno,
"cannot open libxc handle");
- free(ctx->alloc_ptrs);
return ERROR_FAIL;
}
@@ -64,7 +59,6 @@ int libxl_ctx_init(libxl_ctx *ctx, int v
XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, errno,
"cannot conne...
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
2010 May 19
6
[PATCH 0/6]xl: Add ''xl tmem-*'' commands
Add tmem-* commands, did some simple tests.
[PATCH 1/6]xl: Add ''xl tmem-list'' command
[PATCH 2/6]xl: Add ''xl tmem-freeze'' command
[PATCH 3/6]xl: Add ''xl tmem-destroy'' command
[PATCH 4/6]xl: Add ''xl tmem-thaw'' command
[PATCH 5/6]xl: Add ''xl tmem-set'' command
[PATCH 6/6]xl: Add ''xl
2010 Aug 13
3
[PATCH] xl: make libxl_uuid2string internal to libxenlight
..._ctx *ctx, ui
return 0;
}
-char *libxl_uuid2string(libxl_ctx *ctx, const libxl_uuid uuid)
+char *libxl_uuid2string(libxl_gc *gc, const libxl_uuid uuid)
{
- libxl_gc gc = LIBXL_INIT_GC(ctx);
- char *s = string_of_uuid(&gc, uuid);
- char *ret;
- if (!s) {
- XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate for uuid");
- ret = NULL;
- }else{
- ret = strdup(s);
- }
- libxl_free_all(&gc);
- return ret;
+ char *s = string_of_uuid(gc, uuid);
+ if (!s)
+ XL_LOG(libxl_gc_owner(gc), XL_LOG_ERROR, "cannot allocate for uuid");
+...
2010 Aug 18
16
[PATCH 00 of 16] libxl: autogenerate type definitions and destructor functions
The series introduces auto-generation of the type definitions used in
the libxl interface followed by auto-generation of a destructor
function for each type. In the future it may be possible to use the
related data structures for other purposes, for example auto-generation
of the functions to marshal between C and language binding data types.
tools/_libxl_types.h should be identical both before