On Thu, Mar 23, 2023 at 10:21:48AM +0000, Liu, Yi L wrote: > > It would also be a nice touch to include a new vfio_pci_hot_reset_info > > that returns the dev_id's of the other devices in the reset group > > instead of a BDF. It would be alot easier for userspace to work with. > > Yeah, just as we are chatting in another thread. Btw. Do we expect the > new _INFO ioctl that return dev_ids work for the legacy group path under > compat mode? If no, then I may need to organize this series after cdev > series since dev_id is returned to user in cdev series. It shouldn't matter, just go through evey device, check if it is open, check if it has an iommufd_ctx that its the same as the current device and then convert the bind object to a dev_id. Shouldn't matter one bit how iommufd got attached It isn't usable without the cdev series, but it can safely be put ahead of it. Jason