search for: pcidev_s

Displaying 2 results from an estimated 2 matches for "pcidev_s".

Did you mean: pcidev_k
2011 Dec 09
2
[PATCH 1 of 2] libxl: fix cold plugged PCI devices with stubdomains
.../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 09 12:01:16 2011 +0000 @@ -819,7 +819,8 @@ int libxl__device_pci_add(libxl__gc *gc, stubdomid = libxl_get_stubdom_id(ctx, domid); if (stubdomid != 0) { libxl_device_pci pcidev_s = *pcidev; - rc = do_pci_add(gc, stubdomid, &pcidev_s, starting); + /* stubdomain is always running by now, even at create time */ + rc = do_pci_add(gc, stubdomid, &pcidev_s, 0); if ( rc ) goto out; }
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...ice_pci_reset(ctx, pcidev->domain, pcidev->bus, pcidev->dev, pcidev->func); + libxl_device_pci_reset(&gc, pcidev->domain, pcidev->bus, pcidev->dev, pcidev->func); stubdomid = libxl_get_stubdom_id(ctx, domid); if (stubdomid != 0) { libxl_device_pci pcidev_s = *pcidev; - rc = do_pci_add(ctx, stubdomid, &pcidev_s); + rc = do_pci_add(&gc, stubdomid, &pcidev_s); if ( rc ) - return rc; + goto out; } orig_vdev = pcidev->vdevfn & ~7U; @@ -738,10 +780,12 @@ int libxl_device_pci_add(li...