vfio/pds: Only use a single SGL for both seq and ack
authorBrett Creeley <brett.creeley@amd.com>
Fri, 17 Nov 2023 00:12:03 +0000 (16:12 -0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 4 Dec 2023 21:33:20 +0000 (14:33 -0700)
commit3b8f7a24d1fe79cc3fa1da9be5610b9c3aedbc2a
tree2b95fa669f53736af75d423c81f2915875680d7e
parent4004497cec3093d7b0087bc70709b45969fa07b6
vfio/pds: Only use a single SGL for both seq and ack

Since the seq/ack operations never happen in parallel there
is no need for multiple scatter gather lists per region.
The current implementation is wasting memory. Fix this by
only using a single scatter-gather list for both the seq
and ack operations.

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-3-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