On Wed, 28 Feb 2024 12:52:00 +1100 David Gibson <david(a)gibson.dropbear.id.au> wrote:From: Laurent Vivier <lvivier(a)redhat.com> Introduce functions to copy to/from a buffer from/to an iovec array, to compute data length in in bytes of an iovec and to copy memory from an iovec to another. iov_from_buf(), iov_to_buf(), iov_size(), iov_copy(). Signed-off-by: Laurent Vivier <lvivier(a)redhat.com> Message-ID: <20240217150725.661467-2-lvivier(a)redhat.com> [dwg: Small changes to suppress cppcheck warnings] Signed-off-by: David Gibson <david(a)gibson.dropbear.id.au>I have a long list of style comments on this one, but nothing functional, so I'll go ahead and apply it to unblock this series, and post fix-up patches later. -- Stefano