4 Nov
2025
4 Nov
'25
4:11 p.m.
On 11/3/25 11:16, Stefano Brivio wrote:
...and, for consistency, rename 'bytes' to 'copy' in iov_to_buf().
Two commits ago, I changed vhost-user functions to use iov_from_buf() to copy only up to the size of source buffers, instead of using the size of the destination vhost-user buffers.
This change pads the rest with zeroes, which is not strictly needed, but looks definitely cleaner.
Signed-off-by: Stefano Brivio
--- iov.c | 54 ++++++++++++++++++++++++++++++++++------------------- iov.h | 4 ++-- vu_common.c | 2 +- 3 files changed, 38 insertions(+), 22 deletions(-)
Reviewed-by: Laurent Vivier