search for: libxl__sprintf

Displaying 20 results from an estimated 47 matches for "libxl__sprintf".

Did you mean: libxl_sprintf
2011 May 25
7
[PATCH] libxl: use preferred syntax for network device creation with upstream qemu
...ibxl_dm.c Wed May 25 09:20:31 2011 +0100 @@ -336,11 +336,11 @@ static char ** libxl__build_device_model } else { ifname = vifs[i].ifname; } - flexarray_append(dm_args, "-net"); - flexarray_append(dm_args, libxl__sprintf(gc, "nic,vlan=%d,macaddr=%s,model=%s", - vifs[i].devid, smac, vifs[i].model)); - flexarray_append(dm_args, "-net"); - flexarray_append(dm_args, libxl__sprintf(gc, "tap,vlan=%d,ifname=%s,script=%s", +...
2012 Feb 08
7
[PATCH] libxl: Set VNC password through QMP
...xarray_append(dm_args, "-vnc"); if (info->vncdisplay) { @@ -287,13 +285,16 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, } if (strchr(listen, '':'') != NULL) - flexarray_append(dm_args, - libxl__sprintf(gc, "%s%s", listen, - info->vncunused ? ",to=99" : "")); + vncarg = libxl__sprintf(gc, "%s", listen); else - flexarray_append(dm_args, - libxl__sprintf(gc, "%s:%d%s", listen...
2013 Nov 25
22
[PATCH 0/4] Coverity fixes for tools/libxl
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> -- 1.7.10.4
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
2013 Apr 17
10
xl network-attach SEGV in 4.2 and 4.1
...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; } else { nic->devid = strtoul(l[nb - 1], NULL, 10) +...
2011 Nov 04
2
[PATCH V3 REBASE 1/2] libxl_qmp: Introduce libxl__qmp_pci_del
...d(qmp, "device_del", &args, + NULL, NULL, qmp->timeout); + + flexarray_free(parameters); + libxl__qmp_close(qmp); + return rc; +} + +int libxl__qmp_pci_del(libxl__gc *gc, int domid, libxl_device_pci *pcidev) +{ + char *id = NULL; + + id = libxl__sprintf(gc, PCI_PT_QDEV_ID, + pcidev->bus, pcidev->dev, pcidev->func); + + return qmp_device_del(gc, domid, id); +} + int libxl__qmp_initializations(libxl_ctx *ctx, uint32_t domid) { libxl__qmp_handler *qmp = NULL; -- Anthony PERARD _____________________________...
2011 Jan 25
2
[PATCH] libxl: fix segfault on device assignement
...:14:52 2011 +0000 +++ b/tools/libxl/libxl_pci.c Tue Jan 25 15:34:43 2011 +0000 @@ -268,7 +268,7 @@ static int libxl_create_pci_backend(libx for (i = 0; i < num; i++, pcidev++) libxl_create_pci_backend_device(gc, back, i, pcidev); - flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num)); + flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num), NULL); flexarray_vappend(front, "backend-id", libxl__sprintf(gc, "%d", 0), _______________________________________________ Xen-de...
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
2012 Nov 07
4
[PATCH 1/2] 4.1.2 blktap2 cleanup fixes.
...ar *libxl__blktap_devpath(libxl_ { const char *type; char *params, *devname = NULL; - int minor, err; + tap_list_t tap; + int err; type = libxl__device_disk_string_of_format(format); - minor = tap_ctl_find_minor(type, disk); - if (minor >= 0) { - devname = libxl__sprintf(gc, "/dev/xen/blktap-2/tapdev%d", minor); + err = tap_ctl_find(type, disk, &tap); + if (err == 0) { + devname = libxl__sprintf(gc, "/dev/xen/blktap-2/tapdev%d", tap.minor); if (devname) return devname; } @@ -49,3 +52,28 @@ const char *...
2011 Nov 30
4
Compile error with Ubuntu 11.10
Hi, compilation of xen-unstable with a fresh Ubuntu 11.10 x86_64 fails with following error: cc1: warnings being treated as errors libxl_create.c: In function ‘store_libxl_entry’: libxl_create.c:465: error: format not a string literal and no format arguments Steps to reproduce: - Install Ubuntu 11.10 ( http://www.ubuntu.com/start-download?distro=desktop&bits=64&release=latest) - sudo
2013 Jan 18
6
[PATCH v1 01/02] HVM firmware passthrough libxl support
This patch introduces support for two new parameters in libxl: smbios_firmware=<path_to_smbios_structures_file> acpi_firmware=<path_to_acpi_tables_file> The changes are primarily in the domain building code where the firmware files are read and passed to libxc for loading into the new guest. After the domain building call to libxc, the addresses for the loaded blobs are returned and
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=[
2011 Sep 07
0
[PATCH] libxl: vcpu_avail is a bitmask, use it as such
...doesn''t + * support a bitmask of available cpus but it supports a + * number of available cpus lower than the maximum number of + * cpus. Let''s do that for now. */ if (info->vcpu_avail) - flexarray_append(dm_args, libxl__sprintf(gc, "%d,maxcpus=%d", info->vcpus, info->vcpu_avail)); + flexarray_append(dm_args, libxl__sprintf(gc, "%d,maxcpus=%d", + __builtin_popcount(info->vcpu_avail), info->vcpus)); else flexarray_append(...
2012 Jan 05
1
[PATCH] add feature flag to xenstore for XS_RESET_WATCHES
...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__sprintf(gc, "%s/control/platform-feature-xs_rese...
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
2012 May 15
5
[PATCH 0 of 4 v3] Add commands to automatically prep devices for pass-through
Add commands to automatically prep devices for pass-through The current method for passing through devices requires users to either modify cryptic Linux boot parameters and reboot, or do a lot of manual reads and writes into sysfs nodes. This set of patches introduces commands to make this easier. It expands on the concept of "assignable" (from the list_assignable_devices command).
2012 May 17
8
[PATCH] libxl: do not overwrite user supplied config when running bootloader
...ootloader_path) { const libxl_domain_build_info *info = bl->info; @@ -53,12 +54,12 @@ static void make_bootloader_args(libxl__ #define ARG(arg) bootloader_arg(bl, (arg)) - ARG(info->u.pv.bootloader); + ARG(bootloader_path); - if (info->u.pv.kernel.path) - ARG(libxl__sprintf(gc, "--kernel=%s", info->u.pv.kernel.path)); - if (info->u.pv.ramdisk.path) - ARG(libxl__sprintf(gc, "--ramdisk=%s", info->u.pv.ramdisk.path)); + if (info->u.pv.kernel) + ARG(libxl__sprintf(gc, "--kernel=%s", info->u.pv.kernel)); +...
2012 Jul 04
2
[PATCH] libxl: rename stubdomain when renaming domain
...igned int got_old_len; xs_transaction_t our_trans = 0; + uint32_t stub_dm_domid; + const char *stub_dm_old_name = NULL, *stub_dm_new_name = NULL; int rc; dom_path = libxl__xs_get_dompath(gc, domid); @@ -284,6 +286,12 @@ int libxl__domain_rename(libxl__gc *gc, name_path= libxl__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_tr...
2012 May 30
1
[PATCH QXL 2/2] libxl: Add qxl vga interface support.
...xarray_vappend(dm_args, "-vga", "std", NULL); + break; + case LIBXL_VGA_INTERFACE_TYPE_QXL: + flexarray_vappend(dm_args, "-vga", "qxl", NULL); + flexarray_vappend(dm_args, "-global", + libxl__sprintf(gc, "qxl-vga.vram_size=%lu", + b_info->u.hvm.vga.vramkb * 1024), + NULL); + flexarray_vappend(dm_args, "-global", + libxl__sprintf(gc, "qxl-vga.ram_size=%lu", +...
2012 Jul 27
9
[PATCH 0/3] libxl cd-insert/eject with qemu-xen
This patch series provides the facility to eject and insert a cdrom when the used device-model is qemu-xen. The only difference between both device-model is a call to a QMP command as `xl cd-insert ...` will still update xenstore, even if it''s not used by QEMU. Anthony PERARD (3): libxl_qmp, Introduce libxl__qmp_insert_cdrom. libxl_dm: Set an id to cdrom drives with qemuu. libxl: