mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
util: Update the inconsistent and outdated comments
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.
This commit is contained in:
parent
383a41657f
commit
a2145faef9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user