search for: libxl_init_gc

Displaying 7 results from an estimated 7 matches for "libxl_init_gc".

2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...xch); do_free_version_info(&ctx->version_info); if (ctx->xsh) xs_daemon_close(ctx->xsh); @@ -86,6 +78,7 @@ int libxl_ctx_free(libxl_ctx *ctx) int libxl_domain_make(libxl_ctx *ctx, libxl_domain_create_info *info, uint32_t *domid) { + libxl_gc gc = LIBXL_INIT_GC(ctx); int flags, ret, i, rc; char *uuid_string; char *rw_paths[] = { "device", "device/suspend/event-channel" , "data"}; @@ -98,7 +91,10 @@ int libxl_domain_make(libxl_ctx *ctx, li xen_domain_handle_t handle; uuid_string = libxl_uuid2string(c...
2011 Jan 11
0
[PATCH, v2]: xl: move domain struct init functions to libxl
...mp;nic_info->script, "%s/vif-bridge", + libxl_xen_script_dir_path()) < 0 ) + return ERROR_FAIL; + nic_info->nictype = NICTYPE_IOEMU; + return 0; +} + int libxl_device_nic_add(libxl_ctx *ctx, uint32_t domid, libxl_device_nic *nic) { libxl__gc gc = LIBXL_INIT_GC(ctx); @@ -1182,6 +1211,34 @@ err: } /******************************************************************************/ +void libxl_device_net2_init(libxl_device_net2 *net2_info, int devnum) +{ + const uint8_t *r; + libxl_uuid uuid; + + libxl_uuid_generate(&uuid); + r = libxl_uuid_...
2011 Feb 08
0
[PATCH] libxl: allow guest to write "control/shutdown" xenstore node
...n.campbell@citrix.com> diff -r deaa7bc1a7ff -r a46b91cd8202 tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Tue Feb 08 09:13:38 2011 +0000 +++ b/tools/libxl/libxl_create.c Tue Feb 08 16:26:07 2011 +0000 @@ -290,7 +290,7 @@ int libxl__domain_make(libxl_ctx *ctx, l libxl__gc gc = LIBXL_INIT_GC(ctx); /* fixme: should be done by caller */ int flags, ret, i, rc; char *uuid_string; - char *rw_paths[] = { "device", "device/suspend/event-channel" , "data"}; + char *rw_paths[] = { "control/shutdown", "device", "device/suspen...
2010 Aug 13
3
[PATCH] xl: make libxl_uuid2string internal to libxenlight
...0 +0100 +++ b/tools/libxl/libxl_dom.c Fri Aug 13 15:32:31 2010 +0100 @@ -442,19 +442,12 @@ int save_device_model(libxl_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...
2011 Oct 14
21
xl create PV guest with qcow/qcow2 disk images fail
Hi, List, I''m trying xl create a pv guest with qcow/qcow2 image, it always fails at libxl_device_disk_local_attach. #xl create pv_config_file libxl: error: libxl.c:1119:libxl_device_disk_local_attach: cannot locally attach a qdisk image if the format is not raw libxl: error: libxl_create.c:467:do_domain_create: failed to run bootloader: -3 disk configuration is: disk=[
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
2011 Jan 22
53
Xen 4.1 rc1 test report
Hi, All Intel QA conducted a full validation for xen 4.1 rc1, it includes VT-x, VT-d, SRIOV, RAS, TXT and xl tools testing. 24 issues were exposed. Refer the bug list, please. We already assigned 14 bugs to Intel developers (which has an ''Intel'' tag in the bug title), most of the rest 10 bugs are related xl command. For the these bugs, need community''s help to fix