search for: libxl_device_pci_add

Displaying 9 results from an estimated 9 matches for "libxl_device_pci_add".

2011 Dec 09
2
[PATCH 1 of 2] libxl: fix cold plugged PCI devices with stubdomains
...PCI devices with stubdomains Since 23565:72eafe80ebc1 the xenstore entries for the stubdomain''s PCI were never created and therefore the stubdom ends up waiting forever for the devices which it has been asked to insert to show up. Since the stubdomain is already running when we call the libxl_device_pci_add loop in do_domain_create we should treat it as if "starting == 0". Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r d8c390192ad1 -r 9c1b223e152e tools/libxl/libxl_pci.c --- a/tools/libxl/libxl_pci.c Thu Dec 08 17:43:29 2011 +0000 +++ b/tools/libxl/libxl_pci.c Fri Dec...
2016 May 12
2
PCI Passthrough not working
...u=soft and swiotlb=force both together and separately to the kernel command line in the DomU (running Debian 8), but I get the same error each time. libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation not permitted libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add failed: -3 Can anyone suggest a cure for this? Many thanks Francis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20160512/45e20744/attachment.html>
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...ctx, uint32_t domid, libxl if (!back) return ERROR_NOMEM; - XL_LOG(ctx, XL_LOG_DEBUG, "Creating pci backend\n"); + XL_LOG(ctx, XL_LOG_DEBUG, "Creating pci backend"); /* add pci device */ device.backend_devid = 0; @@ -1088,7 +1099,7 @@ static int libxl_device_pci_add_xenstore(struct libxl_ctx *ctx, uint32_t domid, if (!back) return ERROR_NOMEM; - XL_LOG(ctx, XL_LOG_DEBUG, "Adding new pci device to xenstore\n"); + XL_LOG(ctx, XL_LOG_DEBUG, "Adding new pci device to xenstore"); num = atoi(num_devs); flexarray_se...
2016 May 16
0
PCI Passthrough not working
...oth together and separately > to the kernel command line > in the DomU (running Debian 8), but I get the same error each time. > > libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation > not permitted > libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add > failed: -3 Can you please attach the following: 1. The complete domU config file 2. A complete log of the command and all the output 3. The full output of "xl dmesg" just after you run the command Thanks, -George
2016 May 16
2
PCI Passthrough not working
...gether and separately > to the kernel command line > in the DomU (running Debian 8), but I get the same error each time. > > libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation > not permitted > libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add > failed: -3 Can you please attach the following: 1. The complete domU config file 2. A complete log of the command and all the output 3. The full output of "xl dmesg" just after you run the command Thanks, -George -------------- next part -------------- An HTML attachment wa...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...libxl_xs_kvs_of_flexarray(ctx, front, foffset)); + libxl_xs_kvs_of_flexarray(gc, back, boffset), + libxl_xs_kvs_of_flexarray(gc, front, foffset)); flexarray_free(back); flexarray_free(front); return 0; } -static int libxl_device_pci_add_xenstore(libxl_ctx *ctx, uint32_t domid, libxl_device_pci *pcidev) +static int libxl_device_pci_add_xenstore(libxl_gc *gc, uint32_t domid, libxl_device_pci *pcidev) { + libxl_ctx *ctx = libxl_gc_owner(gc); flexarray_t *back; char *num_devs, *be_path; int num = 0; unsigned in...
2010 Jun 28
8
[PATCH] add xl ocaml bindings
...0) + failwith_xl("vfb_hard_shutdown"); + FREE_CTX(); + + CAMLreturn(Val_unit); +} + +value stub_xl_pci_add(value info, value domid) +{ + CAMLparam2(info, domid); + struct libxl_ctx ctx; + libxl_device_pci c_info; + int ret; + + device_pci_val(&c_info, info); + + INIT_CTX(); + ret = libxl_device_pci_add(&ctx, Int_val(domid), &c_info); + if (ret != 0) + failwith_xl("pci_add"); + FREE_CTX(); + + CAMLreturn(Val_unit); +} + +value stub_xl_pci_remove(value info, value domid) +{ + CAMLparam2(info, domid); + struct libxl_ctx ctx; + libxl_device_pci c_info; + int ret; + + device_pci_va...
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
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