On 4/26/23 17:03, Yi Liu wrote:
This defines KVM_DEV_VFIO_FILE* and make alias with KVM_DEV_VFIO_GROUP*.
Old userspace uses KVM_DEV_VFIO_GROUP* works as well.
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Tested-by: Terrence Xu
Tested-by: Nicolin Chen
Tested-by: Matthew Rosato
Tested
On 5/13/23 15:21, Yi Liu wrote:
There are drivers that need to search vfio_device within a given dev_set.
e.g. vfio-pci. So add a helper.
Signed-off-by: Yi Liu
---
drivers/vfio/pci/vfio_pci_core.c | 8 +++-
drivers/vfio/vfio_main.c | 15 +++
include/linux/vfio.h
On 5/13/23 15:21, Yi Liu wrote:
This makes VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl to use the iommufd_ctx
of the cdev device to check the ownership of the other affected devices.
This returns devid for each of the affected devices. If it is bound to the
iommufd_ctx of the cdev device, _INFO rep