On 9/14/2018 6:33 PM, Alex Williamson wrote:
@@ -1015,7 +1015,7 @@ static long vfio_pci_ioctl(void *device_data,
&info, slot);
if (!ret)
/* User has access, do the reset */
- ret = pci_reset_bus(vdev->pdev);
+ ret = pci_reset_bus(vdev->pdev, PCI_RESET_LINK);
This should have switched back the control we had prior to 811c5cb37df4
with something like:
ret = pci_reset_bus(vdev->pdev,
slot ? PCI_RESET_SLOT : PCI_RESET_BUS);
hot_reset_release:
for (i--; i >= 0; i--)
@@ -1390,7 +1390,7 @@ static void vfio_pci_try_bus_reset(struct vfio_pci_device *vdev)
}
if (needs_reset)
- ret = pci_reset_bus(vdev->pdev);
+ ret = pci_reset_bus(vdev->pdev, PCI_RESET_LINK);
Same here.
Sure I can do that.