[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: libxl__device_pci_destroy_all should succeed if there is no PCI bus



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1320251118 0
# Node ID 6868855b6651639f02004a7e313fe7aaba522821
# Parent  a6aa8ddce35a48315d0a43b7bedb1f95394c9dc9
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@xxxxxxxxxx>
Acked-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r a6aa8ddce35a -r 6868855b6651 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Wed Nov 02 16:23:23 2011 +0000
+++ b/tools/libxl/libxl_pci.c   Wed Nov 02 16:25:18 2011 +0000
@@ -1098,7 +1098,7 @@
 
     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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.