search for: libxl_device_n

Displaying 19 results from an estimated 19 matches for "libxl_device_n".

Did you mean: libxl_device_
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 Jan 11
0
[PATCH, v2]: xl: move domain struct init functions to libxl
...2d3ea22ae tools/libxl/libxl.c --- a/tools/libxl/libxl.c Tue Jan 11 15:30:48 2011 +0000 +++ b/tools/libxl/libxl.c Tue Jan 11 15:40:45 2011 +0000 @@ -1024,6 +1024,35 @@ int libxl_device_disk_local_detach(libxl } /******************************************************************************/ +int libxl_device_nic_init(libxl_device_nic *nic_info, int devnum) +{ + const uint8_t *r; + libxl_uuid uuid; + + libxl_uuid_generate(&uuid); + r = libxl_uuid_bytearray(&uuid); + memset(nic_info, ''\0'', sizeof(*nic_info)); + + nic_info->backend_domid = 0; + nic_info->...
2012 Aug 14
4
[PATCH] libxl: fix usage of backend parameter and run_hotplug_scripts
...setting up a driver +domain which is outside the scope of this document. ### rate diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 8ea3478..6b85cdc 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2474,6 +2474,8 @@ out: int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic, uint32_t domid) { + int run_hotplug_scripts; + if (!nic->mtu) nic->mtu = 1492; if (!nic->model) { @@ -2503,6 +2505,18 @@ int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic,...
2013 Apr 17
10
xl network-attach SEGV in 4.2 and 4.1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, 4.2 and 4.1 suffers from SEGV during xl network-attach in libxl__device_nic_add. In 4.3-unstable it is fixed by: 5420f2650 libxl: Set vfb and vkb devid if not done so by the caller So either the patch need to be backported to 4.1 and 4.2, or fixed by this one: - ------ libxl: Fix SEGV in network-attach When "device/vif" directory
2013 May 08
1
[PATCH] libxl: make nic 'bridge' parameter optional - do not fill default
...--- tools/libxl/libxl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 6bb9c24..03fd35a 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2811,10 +2811,6 @@ int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic, nic->mac[4] = r[1]; nic->mac[5] = r[2]; } - if (!nic->bridge) { - nic->bridge = strdup("xenbr0"); - if (!nic->bridge) return ERROR_NOMEM; - } if ( !nic->script && asprintf(&nic->script, "%s/vif-b...
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=[
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
2013 Apr 12
11
[PATCH v4 1/2] libxl: postpone backend name resolution
...libxl__gc *gc, libxl_device_disk *disk) rc = libxl__device_disk_set_backend(gc, disk); if (rc) return rc; + rc = libxl__resolve_domid(gc, disk->backend_domname, &disk->backend_domid); return rc; } @@ -2799,7 +2808,7 @@ int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic, abort(); } - return 0; + return libxl__resolve_domid(gc, nic->backend_domname, &nic->backend_domid); } static int libxl__device_from_nic(libxl__gc *gc, uint32_t domid, @@ -3156,7 +3165,7 @@ out: int libxl__device_vkb_setdefault(libxl__gc *gc, libxl_dev...
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
* Introduce new variants of the logging functions which include errno values (converted using strerror) in the messages passed to the application''s logging callback. * Use the new errno-including logging functions everywhere where appropriate. In general, xc_... functions return errno values or 0; xs_... functions return 0 or -1 (or some such) setting errno. * When
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 Feb 01
2
[PATCH] libxl: change default HVM emulated network card to rtl8139
...ew default when switching to upstream qemu, in the Xen 4.2 release cycle. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 5c1b3ab..6dbfca7 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1110,7 +1110,7 @@ int libxl_device_nic_init(libxl_device_nic *nic_info, int devnum) nic_info->domid = 0; nic_info->devid = devnum; nic_info->mtu = 1492; - nic_info->model = strdup("e1000"); + nic_info->model = strdup("rtl8139"); nic_info->mac[0] = 0x00; nic_info->...
2012 Sep 27
18
[PATCH 09/11] add iomem support to libxl
..."-%"PRIx64, + domid, io->start, io->start + io->number - 1); + ret = ERROR_FAIL; + } + } + + + for (i = 0; i < d_config->num_nics; i++) { /* We have to init the nic here, because we still haven''t * called libxl_device_nic_add at this point, but qemu needs diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 6d5c578..cf83c60 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -140,6 +140,11 @@ libxl_ioport_range = Struct("ioport_range", [ ("numbe...
2010 Jun 28
8
[PATCH] add xl ocaml bindings
...val->phystype = (Int_val(Field(v, 2))) + PHYSTYPE_QCOW; + c_val->virtpath = String_val(Field(v, 3)); + c_val->unpluggable = Bool_val(Field(v, 4)); + c_val->readwrite = Bool_val(Field(v, 5)); + c_val->is_cdrom = Bool_val(Field(v, 6)); + + CAMLreturn(0); +} + +static int device_nic_val(libxl_device_nic *c_val, value v) +{ + CAMLparam1(v); + int i; + int ret = 0; + c_val->backend_domid = Int_val(Field(v, 0)); + c_val->devid = Int_val(Field(v, 1)); + c_val->mtu = Int_val(Field(v, 2)); + c_val->model = String_val(Field(v, 3)); + + if (Wosize_val(Field(v, 4)) != 6) { + ret = 1; + goto...
2012 Apr 04
10
[PATCH 0 of 2] libxl: add libxl_domain_config_init
The following series implements libxl_domain_config_init as per the libxl API requirement that each type has an init function. The first function does this in an open coded manner and is proposed for Xen 4.2. The second function is RFC only since it moves the definition of this type into the IDL and makes the required infrastructure updates to enable this. I think this is more 4.3 material at
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...d, -1, -1, args[0], args); return 0; } -static char ** libxl_build_device_model_args_old(libxl_ctx *ctx, +static char ** libxl_build_device_model_args_old(libxl_gc *gc, libxl_device_model_info *info, libxl_device_nic *vifs, int num_vifs) @@ -974,13 +1044,14 @@ static char ** libxl_build_device_model_ int num = 0, i; flexarray_t *dm_args; dm_args = flexarray_make(16, 1); + if (!dm_args) return NULL; flexarray_set(dm_args, num++,...
2013 Mar 25
86
[PATCH 00/28] libxl: ocaml: improve the bindings
The following series of patches fill in most of the gaps in the OCaml bindings to libxl, to make them useful for clients such as xapi/xenopsd (from XCP). There are a number of bugfixes to the existing bindings as well. I have an experimental version of xenopsd that successfully uses the new bindings. An earlier version of the first half of the series was submitted to the last by Ian Campbell on
2013 Nov 26
7
[PATCH RESEND 0/1] libxl: introduce an option for disabling the non-O_DIRECT
I think I posted this patch before, but it looks like it was in December 2012 (!). 1/1 libxl: introduce an option for disabling the non-O_DIRECT workaround Ideally it would go into 4.4, at least. Provided the corresponding qemu part has gone into qemu-xen, which I think it has. Can anyone confirm ?
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...libxl_asyncop_how *ao_how) + LIBXL_EXTERNAL_CALLERS_ONLY; +libxl_device_usb *libxl_device_usb_list(libxl_ctx *ctx, uint32_t domid, + int *num) + LIBXL_EXTERNAL_CALLERS_ONLY; + /* Network Interfaces */ int libxl_device_nic_add(libxl_ctx *ctx, uint32_t domid, libxl_device_nic *nic, const libxl_asyncop_how *ao_how) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index ae72f21..3a84bf2 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -393,7 +393...
2013 Oct 21
36
[PATCH 0 of 5 V3] Remus/Libxl: Network buffering support
This patch series adds support for network buffering in the Remus codebase in libxl. Changes in V3: [1/5] Fix redundant checks in configure scripts (based on Ian Campbell''s suggestions) [2/5] Introduce locking in the script, during IFB setup. Add xenstore paths used by netbuf scripts to xenstore-paths.markdown [3/5] Hotplug scripts setup/teardown invocations are now