On Mon, Mar 27, 2023 at 02:34:54AM -0700, Yi Liu wrote: > This prepares vfio core to accept vfio device file from the vfio PCI > hot reset path. vfio_file_is_group() is still kept for KVM usage. > > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> > --- > drivers/vfio/group.c | 32 ++++++++++++++------------------ > drivers/vfio/pci/vfio_pci_core.c | 4 ++-- > drivers/vfio/vfio.h | 2 ++ > drivers/vfio/vfio_main.c | 29 +++++++++++++++++++++++++++++ > include/linux/vfio.h | 1 + > 5 files changed, 48 insertions(+), 20 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason