]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: Update the inconsistent and outdated comments
authorOsier Yang <jyang@redhat.com>
Fri, 31 Aug 2012 13:44:21 +0000 (21:44 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 31 Aug 2012 13:48:26 +0000 (21:48 +0800)
The codes were updated to allow to reset the device as long as
there is no devices/functions behind the same bus. However, the
comments were kept without touched.

src/util/pci.c

index 137521bf08df749d9f2586c303aa4f8e8b9c0669..0742d07aafd7fed7b161f6af07c6029d5dc4e6b0 100644 (file)
@@ -605,10 +605,9 @@ pciTrySecondaryBusReset(pciDevice *dev,
     uint16_t ctl;
     int ret = -1;
 
-    /* For now, we just refuse to do a secondary bus reset
-     * if there are other devices/functions behind the bus.
-     * In future, we could allow it so long as those devices
-     * are not in use by the host or other guests.
+    /* Refuse to do a secondary bus reset if there are other
+     * devices/functions behind the bus are used by the host
+     * or other guests.
      */
     if ((conflict = pciBusContainsActiveDevices(dev, inactiveDevs))) {
         virReportError(VIR_ERR_INTERNAL_ERROR,