search for: libxl_create_device_model

Displaying 2 results from an estimated 2 matches for "libxl_create_device_model".

2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...s", libxl_uuid_to_string(ctx, uuid)); if (!xs_rm(ctx->xsh, XBT_NULL, vm_path)) - XL_LOG(ctx, XL_LOG_ERROR, "xs_rm failed for %s\n", vm_path); + XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "xs_rm failed for %s", vm_path); return 0; } @@ -524,6 +533,8 @@ int libxl_create_device_model(struct libxl_ctx *ctx, return ERROR_FAIL; dom_path = libxl_xs_get_dompath(ctx, info->domid); + if (!dom_path) + return ERROR_FAIL; path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d", info->domid); xs_mkdir(ctx->xsh, XBT_NULL, path);...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...l_xs_get_dompath(ctx, info->domid); + (*starting_r)->dom_path = libxl_xs_get_dompath(&gc, info->domid); (*starting_r)->for_spawn = NULL; } + ret = 0; + +out_free: free(args); - return 0; +out: + libxl_free_all(&gc); + return ret; } int libxl_create_device_model(libxl_ctx *ctx, @@ -1487,6 +1580,7 @@ int libxl_create_device_model(libxl_ctx libxl_device_nic *vifs, int num_vifs, libxl_device_model_starting **starting_r) { + libxl_gc gc = LIBXL_INIT_GC(ctx); char *path, *logfile; int...