Closed mnissler-rivos closed 10 months ago
FWIW, the arch-202307 failure looks unrelated to this change.
arch appears to be fundamentally unstable, see #770
please add your signed-off-by
LGTM otherwise
Thanks for the quick reply!
please add your signed-off-by
Gah, my favorite mistake. Fixed now.
Thanks for the quick turnaround, much appreciated!
When performing DMA via VFIO-user commands over the socket, vfu_dma_transfer breaks large requests into chunks according to the client's maximum data transfer size negotiated at connection setup time. This change fixes the calculation of the chunk size for the case where the last chunk is less than the maximum transfer size.
Unfortunately, the existing test didn't catch this due to the request size being a multiple of that maximum data transfer size. Adjust the test to make the last chunk size a true remainder.