On 9/4/2018 3:52 PM, Alex Williamson wrote:
I won't deny that we're getting a little sloppy with some of the reset interfaces and I'd love to solve the device lock issue more generally, but trying to abstract slot vs bus and hide the lower level interfaces from drivers doesn't seem like it's really working here. Thanks,
Counter argument is that drivers need to know about bus/slot distinction and call two different API for hotplug capable systems. I think that's too much to ask. The motivation for original patch was that hotplug information was leaking and we could do a better job about it. But, you are right; I partially covered VFIO needs as it seemed to be doing more work than a simple reset due to ownership dependencies.