multifd: Use a single writev on the send side
commitd48c3a044537689866fe44e65d24c7d39a68868a
authorJuan Quintela <quintela@redhat.com>
Fri, 19 Nov 2021 14:35:58 +0000 (19 15:35 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 28 Jan 2022 14:38:23 +0000 (28 15:38 +0100)
treee1741d73eaf172f2d5da0d9e629bcb13096ace23
parent468fcb5dd0c965e1af0da9efab09b1462631da18
multifd: Use a single writev on the send side

Until now, we wrote the packet header with write(), and the rest of the
pages with writev().  Just increase the size of the iovec and do a
single writev().

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/multifd.c