diff options
author | Yi Liu <[email protected]> | 2023-07-18 03:55:41 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-07-25 10:18:09 -0600 |
commit | b56b7aabcf3cfde57559d3ab06567b94f348f13c (patch) | |
tree | 8f0188975f9c6349f6c4e89230e4b188f96f707d /net/lapb/lapb_timer.c | |
parent | 9062ff405b49769c04f00373de2c9cefab91b600 (diff) |
vfio/pci: Copy hot-reset device info to userspace in the devices loop
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]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions