mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
vfio: Commonize combine_ranges for use in other VFIO drivers
Currently only Mellanox uses the combine_ranges function. The new pds_vfio driver also needs this function. So, move it to a common location for other vendor drivers to use. Also, fix RCT ordering while moving/renaming the function. Cc: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Link: https://lore.kernel.org/r/20230807205755.29579-2-brett.creeley@amd.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
committed by
Alex Williamson
parent
73e2f19da5
commit
9a4087fab3
@@ -283,6 +283,9 @@ int vfio_mig_get_next_state(struct vfio_device *device,
|
||||
enum vfio_device_mig_state new_fsm,
|
||||
enum vfio_device_mig_state *next_fsm);
|
||||
|
||||
void vfio_combine_iova_ranges(struct rb_root_cached *root, u32 cur_nodes,
|
||||
u32 req_nodes);
|
||||
|
||||
/*
|
||||
* External user API
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user