search for: retry_transact

Displaying 14 results from an estimated 14 matches for "retry_transact".

2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...vm/%s", uuid_string); + } + + vm_path = libxl_sprintf(&gc, "/vm/%s", uuid_string); if (!vm_path) { XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate create paths"); + libxl_free_all(&gc); return ERROR_FAIL; } @@ -147,42 +148,47 @@ retry_transaction: xs_mkdir(ctx->xsh, t, vm_path); xs_set_permissions(ctx->xsh, t, vm_path, roperm, ARRAY_SIZE(roperm)); - xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/vm", dom_path), vm_path, strlen(vm_path)); + xs_write(ctx->xsh, t, libxl_sprintf(&gc, "%s/vm&quot...
2011 Dec 16
13
[PATCH 0 of 4] Support for VM generation ID save/restore and migrate
This patch series adds support for preservation of the VM generation ID buffer address in xenstore across save/restore and migrate, and also code to increment the value in all cases except for migration. Patch 1 modifies the guest ro and rw node creation to an open coding style and cleans up some extraneous node creation. Patch 2 modifies creation of the hvmloader key in xenstore and adds
2010 Aug 13
0
[PATCH 1 of 4] libxl_device_generic_add: handle NULL fents or bents
...on xenstore for console 0. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r 85bd0f6e8fed tools/libxl/libxl_device.c --- a/tools/libxl/libxl_device.c Fri Aug 13 13:55:51 2010 +0100 +++ b/tools/libxl/libxl_device.c Fri Aug 13 19:23:05 2010 +0100 @@ -76,21 +76,21 @@ retry_transaction: t = xs_transaction_start(ctx->xsh); /* FIXME: read frontend_path and check state before removing stuff */ - xs_rm(ctx->xsh, t, frontend_path); - xs_rm(ctx->xsh, t, backend_path); + if (fents) { + xs_rm(ctx->xsh, t, frontend_path); + xs_mkdir(ctx-&g...
2011 Feb 01
1
[PATCH] libxl: fix unsafe subtraction in libxl_set_memory_target
...xensource.com/bugzilla/show_bug.cgi?id=1729 Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r a69965e61ae9 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Mon Jan 31 17:47:24 2011 +0000 +++ b/tools/libxl/libxl.c Tue Feb 01 16:34:43 2011 +0000 @@ -2059,9 +2059,12 @@ retry_transaction: goto out; } - if (relative) - new_target_memkb = current_target_memkb + target_memkb; - else + if (relative) { + if (target_memkb < 0 && abs(target_memkb) > current_target_memkb) + new_target_memkb = 0; + else + n...
2012 Jan 05
1
[PATCH] add feature flag to xenstore for XS_RESET_WATCHES
...onditionally because some buggy toolstacks (such as EC2) do not ignore unknown commands properly. Signed-off-by: Olaf Hering <olaf@aepfle.de> diff -r 3a22ed3ec534 -r 2f5a98692acd tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -434,6 +434,7 @@ retry_transaction: libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata); xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1); + xs_write(ctx->xsh, t, libxl__sprin...
2012 Feb 08
7
[PATCH] libxl: Set VNC password through QMP
...flexarray_append(dm_args, "-sdl"); @@ -862,6 +863,8 @@ int libxl__create_device_model(libxl__gc *gc, } if (info->vncpasswd) { + /* This xenstore key will only be used by qemu-xen-traditionnal. + * The code to supply vncpasswd to qemu-xen is later. */ retry_transaction: /* Find uuid and the write the vnc password to xenstore for qemu. */ t = xs_transaction_start(ctx->xsh); diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index fa7fb16..b33be99 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_interna...
2012 Jul 04
2
[PATCH] libxl: rename stubdomain when renaming domain
..._sprintf(gc, "%s/name", dom_path); if (!name_path) goto x_nomem; + stub_dm_domid = libxl_get_stubdom_id(CTX, domid); + if (stub_dm_domid) { + stub_dm_old_name = libxl__stub_dm_name(gc, old_name); + stub_dm_new_name = libxl__stub_dm_name(gc, new_name); + } + retry_transaction: if (!trans) { trans = our_trans = xs_transaction_start(ctx->xsh); @@ -341,6 +349,17 @@ int libxl__domain_rename(libxl__gc *gc, goto x_fail; } + if (stub_dm_domid) { + rc = libxl__domain_rename(gc, stub_dm_domid, + stub...
2011 Dec 14
18
[PATCH 0 of 3] Support for VM generation ID save/restore and migrate
This patch series adds support for preservation of the VM generation ID buffer address in xenstore across save/restore and migrate, and also code to increment the value in all cases except for migration. The first patch modifies creation of the hvmloader key in xenstore and adds creation of a new read/write hvmloader/generation-id-addr key. The second patch changes hvmloader to use the new key (as
2011 Sep 21
1
[PATCH] libxl: attempt to cleanup tapdisk processes on disk backend destroy
...Sep 21 13:59:24 2011 +0100 @@ -372,6 +372,7 @@ int libxl__device_destroy(libxl__gc *gc, if (!state) goto out; if (atoi(state) != 4) { + libxl__device_destroy_tapdisk(gc, be_path); xs_rm(ctx->xsh, XBT_NULL, be_path); goto out; } @@ -394,6 +395,7 @@ retry_transaction: } else { xs_rm(ctx->xsh, XBT_NULL, be_path); } + libxl__device_destroy_tapdisk(gc, be_path); out: return rc; } diff -r 206afa070919 -r b43fd821d1ae tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Wed Sep 21 13:59:24 2011 +0100 +++ b/tools/libxl/li...
2013 Nov 22
4
[PATCH 0/2] libxl/xl: two more coverity related fixes
The first patch is a leftover from the switch to libxl__create_qemu_logfile, and while there it also handles possible errors when opening /dev/null. The second one is a fix for the issues present in do_daemonize. Thanks, Roger.
2012 Feb 09
7
[PATCH V2 0/3] Set VNC password to QEMU upstream
Anthony PERARD (3): libxl_qmp: Use GC instead of CTX as parameter for _initialize. Provide dm_vnc() as a in libxl helper. libxl: Set VNC password through QMP tools/libxl/libxl_create.c | 2 +- tools/libxl/libxl_dm.c | 32 ++++++++++++++---------- tools/libxl/libxl_internal.h | 7 ++++- tools/libxl/libxl_qmp.c | 55 ++++++++++++++++++++++++++++++----------- 4 files
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...t;, rc); + XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, rc, "xc_deassign_device failed"); return 0; } diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index eee0a40..82a2a30 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -92,7 +92,7 @@ retry_transaction: if (errno == EAGAIN) goto retry_transaction; else - XL_LOG(ctx, XL_LOG_ERROR, "xs transaction failed errno=%d\n", errno); + XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "xs transaction failed"); } return 0; } @@ -213,7 +213,...
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...truct xs_permissions noperm[1]; @@ -454,6 +454,8 @@ int libxl__domain_make(libxl__gc *gc, libxl_domain_create_info *info, goto out; } + libxl_usb_path = GCSPRINTF("%s/usb", libxl_path); + noperm[0].id = 0; noperm[0].perms = XS_PERM_NONE; @@ -477,6 +479,13 @@ retry_transaction: xs_rm(ctx->xsh, t, libxl_path); libxl__xs_mkdir(gc, t, libxl_path, noperm, ARRAY_SIZE(noperm)); + /* Helpfully, libxl__xs_rm_checked() returns 0 on success... */ + rc = libxl__xs_rm_checked(gc, t, libxl_usb_path); + if (rc) goto out; + /* ...but libxl__xs_mkdir() retu...
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello, Third version of the NUMA placement series Xen 4.2. All the comments received during v2''s review have been addressed (more details in single changelogs). The most notable changes are the following: - the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the recent patches that allows us to allocate bitmaps of different sizes; - the heuristics for deciding