diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-11-02 16:25:18 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-11-02 16:25:18 +0000 |
commit | 70e7871d0f8fef6271e3ec3d19ecbaa78eb98d9f (patch) | |
tree | 52d88e47431f20cf0f44a9f45b1e2d712ffd6212 /tools/libxl/libxl_pci.c | |
parent | 9a190b2c54716d10753bda1c8b1c6f64c4a05d72 (diff) | |
download | xen-70e7871d0f8fef6271e3ec3d19ecbaa78eb98d9f.tar.gz xen-70e7871d0f8fef6271e3ec3d19ecbaa78eb98d9f.tar.bz2 xen-70e7871d0f8fef6271e3ec3d19ecbaa78eb98d9f.zip |
libxl: libxl__device_pci_destroy_all should succeed if there is no PCI bus
Since 23915:4c4b72c94bac "" it is possible that no bus exists and this is not
an error. Removes the following spurious warning when destroying a PV domain
with no PCI devices:
libxl: error: libxl.c:759:libxl_domain_destroy: pci shutdown failed
for domid 1005
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r-- | tools/libxl/libxl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 3cb246eecc..17dc11493d 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -1098,7 +1098,7 @@ int libxl__device_pci_destroy_all(libxl__gc *gc, uint32_t domid) pcidevs = libxl_device_pci_list(ctx, domid, &num); if ( pcidevs == NULL ) - return ERROR_FAIL; + return 0; for (i = 0; i < num; i++) { /* Force remove on shutdown since, on HVM, qemu will not always |