[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/38] multifd: Make zstd use iov's
From: |
Juan Quintela |
Subject: |
[PULL 10/38] multifd: Make zstd use iov's |
Date: |
Thu, 27 Jan 2022 16:05:20 +0100 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
migration/multifd-zstd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c
index 97c08367d0..bd393aee0d 100644
--- a/migration/multifd-zstd.c
+++ b/migration/multifd-zstd.c
@@ -154,6 +154,9 @@ static int zstd_send_prepare(MultiFDSendParams *p, Error
**errp)
return -1;
}
}
+ p->iov[p->iovs_num].iov_base = z->zbuff;
+ p->iov[p->iovs_num].iov_len = z->out.pos;
+ p->iovs_num++;
p->next_packet_size = z->out.pos;
p->flags |= MULTIFD_FLAG_ZSTD;
@@ -173,10 +176,7 @@ static int zstd_send_prepare(MultiFDSendParams *p, Error
**errp)
*/
static int zstd_send_write(MultiFDSendParams *p, uint32_t used, Error **errp)
{
- struct zstd_data *z = p->data;
-
- return qio_channel_write_all(p->c, (void *)z->zbuff, p->next_packet_size,
- errp);
+ return qio_channel_writev_all(p->c, p->iov, p->iovs_num, errp);
}
/**
--
2.34.1
- [PULL 00/38] Migration 20220127 patches, Juan Quintela, 2022/01/27
- [PULL 01/38] migration: All this fields are unsigned, Juan Quintela, 2022/01/27
- [PULL 02/38] migration: We only need last_stage in two places, Juan Quintela, 2022/01/27
- [PULL 03/38] migration: ram_release_pages() always receive 1 page as argument, Juan Quintela, 2022/01/27
- [PULL 04/38] migration: Remove masking for compression, Juan Quintela, 2022/01/27
- [PULL 05/38] migration: simplify do_compress_ram_page, Juan Quintela, 2022/01/27
- [PULL 06/38] migration: Move ram_release_pages() call to save_zero_page_to_file(), Juan Quintela, 2022/01/27
- [PULL 07/38] multifd: Use proper maximum compression values, Juan Quintela, 2022/01/27
- [PULL 08/38] multifd: Move iov from pages to params, Juan Quintela, 2022/01/27
- [PULL 10/38] multifd: Make zstd use iov's,
Juan Quintela <=
- [PULL 09/38] multifd: Make zlib use iov's, Juan Quintela, 2022/01/27
- [PULL 11/38] multifd: Remove send_write() method, Juan Quintela, 2022/01/27
- [PULL 12/38] multifd: Use a single writev on the send side, Juan Quintela, 2022/01/27
- [PULL 13/38] multifd: Unfold "used" variable by its value, Juan Quintela, 2022/01/27
- [PULL 14/38] multifd: Use normal pages array on the send side, Juan Quintela, 2022/01/27
- [PULL 16/38] multifd: recv side only needs the RAMBlock host address, Juan Quintela, 2022/01/27
- [PULL 15/38] multifd: Use normal pages array on the recv side, Juan Quintela, 2022/01/27
- [PULL 17/38] multifd: Rename pages_used to normal_pages, Juan Quintela, 2022/01/27
- [PULL 18/38] Remove unnecessary minimum_version_id_old fields, Juan Quintela, 2022/01/27
- [PULL 19/38] migration/migration.c: Add missed default error handler for migration state, Juan Quintela, 2022/01/27