This series contains various clean-ups, improvements, and support for multiple dirty tracking regions. The majority of clean-up and improvements are in preparation for the last patch in the series, which adds support for multiple dirty tracking regions. Changes: v2: - Make use of BITS_PER_BYTE #define - Use C99 style for loops - Fix subject line to use vfio/pds instead of pds-vfio-pci - Separate out some calculation fixes into another patch so it can be backported to 6.6-stable - Fix bounds check in pds_vfio_get_region() v1: https://lore.kernel.org/kvm/20231114210129.34318-1-brett.creeley@xxxxxxx/T/ Brett Creeley (6): vfio/pds: Fix calculations in pds_vfio_dirty_sync vfio/pds: Only use a single SGL for both seq and ack vfio/pds: Move and rename region specific info vfio/pds: Pass region info to relevant functions vfio/pds: Move seq/ack bitmaps into region struct vfio/pds: Add multi-region support drivers/vfio/pci/pds/dirty.c | 309 ++++++++++++++++++++++------------- drivers/vfio/pci/pds/dirty.h | 18 +- 2 files changed, 204 insertions(+), 123 deletions(-) -- 2.17.1