On Tue, Jul 18, 2023 at 03:55:41AM -0700, Yi Liu wrote: > This copies the vfio_pci_dependent_device to userspace during looping each > affected device for reporting vfio_pci_hot_reset_info. This avoids counting > the affected devices and allocating a potential large buffer to store the > vfio_pci_dependent_device of all the affected devices before copying them > to userspace. > > Suggested-by: Jason Gunthorpe <[email protected]> > Tested-by: Yanting Jiang <[email protected]> > Tested-by: Zhenzhong Duan <[email protected]> > Signed-off-by: Jason Gunthorpe <[email protected]> > Signed-off-by: Yi Liu <[email protected]> > --- > drivers/vfio/pci/vfio_pci_core.c | 93 ++++++++++++-------------------- > 1 file changed, 33 insertions(+), 60 deletions(-)
Reviewed-by: Jason Gunthorpe <[email protected]> Jason
