Re: [PATCH v12 1/4] selftests/vfio: Add memcpy chunking to vfio_pci_driver_memcpy()

From: David Matlack

Date: Mon Apr 06 2026 - 19:08:45 EST


On 2026-04-03 04:44 PM, Rubin Du wrote:
> Add a chunking loop to vfio_pci_driver_memcpy() so that it breaks up
> large memcpy requests into max_memcpy_size-sized chunks. This allows
> callers to request any size without worrying about per-driver limits.
> The memcpy_start()/memcpy_wait() semantics are unchanged.
>
> Update the test to use 4x max_memcpy_size so it exercises the new
> chunking path (4 iterations) while keeping execution fast for drivers
> with small DMA transfer sizes.
>
> Signed-off-by: Rubin Du <rubind@xxxxxxxxxx>

Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>