search for: libxl__xs_directory

Displaying 6 results from an estimated 6 matches for "libxl__xs_directory".

Did you mean: libxl_xs_directory
2013 Apr 17
10
xl network-attach SEGV in 4.2 and 4.1
...lethingslab.com> diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 5783cd2..9e06a7d 100644 - --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2569,7 +2569,8 @@ void libxl__device_nic_add(libxl__egc *egc, uint32_t domid, goto out_free; } if (!(l = libxl__xs_directory(gc, XBT_NULL, - - libxl__sprintf(gc, "%s/device/vif", dompath), &nb))) { + libxl__sprintf(gc, "%s/device/vif", dompath), &nb)) || + nb == 0) { nic->devid = 0;...
2013 Nov 25
0
[xen-4.3-testing test] 22107: regressions - trouble: blocked/broken/fail/pass
...63f93baa Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Mon Nov 25 13:52:51 2013 +0000 QEMU_TAG update commit 38e7e0d6a84765898f267ce2ecd1d2a18fdae18d Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Thu Apr 18 16:27:46 2013 +0100 libxl: Avoid realloc(,0) when libxl__xs_directory returns empty list If the named path is a leaf node, libxl__xs_directory can succeed, returning non-null, but set *nb to 0. In three places in libxl this may result in a zero size argument being passed to malloc() or realloc(), which is not adviseable. Signed-off-...
2013 Nov 27
0
[xen-4.3-testing test] 22144: regressions - FAIL
...63f93baa Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Mon Nov 25 13:52:51 2013 +0000 QEMU_TAG update commit 38e7e0d6a84765898f267ce2ecd1d2a18fdae18d Author: Ian Jackson <ian.jackson@eu.citrix.com> Date: Thu Apr 18 16:27:46 2013 +0100 libxl: Avoid realloc(,0) when libxl__xs_directory returns empty list If the named path is a leaf node, libxl__xs_directory can succeed, returning non-null, but set *nb to 0. In three places in libxl this may result in a zero size argument being passed to malloc() or realloc(), which is not adviseable. Signed-off-...
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
2012 Sep 27
18
[PATCH 09/11] add iomem support to libxl
This patch adds a new option for xen config files for directly mapping hardware io memory into a vm. Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index 013270d..428da21 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -496,6 +496,17 @@ is given in hexadecimal and may either a span e.g.
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...libxl__device_usb **list, int *num) +{ + char **devlist, *dompath; + unsigned int nd = 0; + int i, rc = 0; + + *list = NULL; + *num = 0; + + dompath = GCSPRINTF(USB_INFO_PATH, + libxl__xs_libxl_path(gc, domid)); + + devlist = libxl__xs_directory(gc, XBT_NULL, dompath, &nd); + if (!devlist) + goto out; + + *list = libxl__calloc(gc, nd, sizeof(libxl__device_usb)); + + for(i = 0; i < nd; i++) { + char *path; + + path = GCSPRINTF("%s/%s", dompath, devlist[i]); + + rc = usb_read_xens...