]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/iov: Introduce iov_send_recv_with_flags()
authorAlejandro Zeise <alejandro.zeise@seagate.com>
Tue, 8 Oct 2024 07:57:13 +0000 (09:57 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Oct 2024 11:33:31 +0000 (12:33 +0100)
commit78a5822820f9356bcd3bd8824186dd953c33028b
tree8b6e1b842c8d8359335f60f99cf9fa9613168755
parent278d59601536a95a3c62af31ebd20e0bfcb833fc
util/iov: Introduce iov_send_recv_with_flags()

In order to support a new update function, a flag needs to be passed
to the kernel via the socket send call (MSG_MORE) to notify it that
more data is to be expected to calculate the hash correctly.

Add a new iov helper for this purpose.

Signed-off-by: Alejandro Zeise <alejandro.zeise@seagate.com>
[ clg: - Split iov changes from original patch
       - Checkpatch fixes ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
include/qemu/iov.h
util/iov.c