vfio/pds: Add multi-region support
authorBrett Creeley <brett.creeley@amd.com>
Fri, 17 Nov 2023 00:12:07 +0000 (16:12 -0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 4 Dec 2023 21:33:21 +0000 (14:33 -0700)
commit2e7c6feb4ef5257189819359e754625ccf5a1d6c
tree02bb2ebf14788a4484cd0752996c18f5bdf7c2f9
parent0c320f223ee6892a413428051f35bebf85fe83d3
vfio/pds: Add multi-region support

Only supporting a single region/range is limiting,
wasteful, and in some cases broken (i.e. when there
are large gaps in the iova memory ranges). Fix this
by adding support for multiple regions based on
what the device tells the driver it can support.

Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20231117001207.2793-7-brett.creeley@amd.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/pds/dirty.c
drivers/vfio/pci/pds/dirty.h