io: add qio_channel_writev_full_all helper
commitbfa42387505168782ba7b339d0b13c23648e6207
authorElena Ufimtseva <elena.ufimtseva@oracle.com>
Fri, 29 Jan 2021 16:46:08 +0000 (29 11:46 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 10 Feb 2021 09:23:28 +0000 (10 09:23 +0000)
treeb872fcb018a90ac29d47e240fa1c896e48d7ab0c
parent3f0e7e57a343ff8c041f47df108aa795fbf27fb3
io: add qio_channel_writev_full_all helper

Adds qio_channel_writev_full_all() to transmit both data and FDs.
Refactors existing code to use this helper.

Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 480fbf1fe4152495d60596c9b665124549b426a5.1611938319.git.jag.raman@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/io/channel.h
io/channel.c