[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/18] multifd: Fill offset and block for reception
From: |
Juan Quintela |
Subject: |
[PULL 14/18] multifd: Fill offset and block for reception |
Date: |
Wed, 15 Dec 2021 11:32:14 +0100 |
We were using the iov directly, but we will need this info on the
following patch.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
migration/multifd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/migration/multifd.c b/migration/multifd.c
index 55d99a8232..0533da154a 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -354,6 +354,7 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p,
Error **errp)
return -1;
}
+ p->pages->block = block;
for (i = 0; i < p->pages->num; i++) {
uint64_t offset = be64_to_cpu(packet->offset[i]);
@@ -363,6 +364,7 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p,
Error **errp)
offset, block->used_length);
return -1;
}
+ p->pages->offset[i] = offset;
p->pages->iov[i].iov_base = block->host + offset;
p->pages->iov[i].iov_len = page_size;
}
--
2.33.1
- [PULL 05/18] migration: Remove is_zero_range(), (continued)
- [PULL 05/18] migration: Remove is_zero_range(), Juan Quintela, 2021/12/15
- [PULL 06/18] dump: Remove is_zero_page(), Juan Quintela, 2021/12/15
- [PULL 08/18] migration: Never call twice qemu_target_page_size(), Juan Quintela, 2021/12/15
- [PULL 02/18] migration/colo: More accurate update checkpoint time, Juan Quintela, 2021/12/15
- [PULL 11/18] multifd: The variable is only used inside the loop, Juan Quintela, 2021/12/15
- [PULL 09/18] multifd: Rename used field to num, Juan Quintela, 2021/12/15
- [PULL 07/18] multifd: Delete useless operation, Juan Quintela, 2021/12/15
- [PULL 12/18] multifd: remove used parameter from send_prepare() method, Juan Quintela, 2021/12/15
- [PULL 10/18] multifd: Add missing documention, Juan Quintela, 2021/12/15
- [PULL 13/18] multifd: remove used parameter from send_recv_pages() method, Juan Quintela, 2021/12/15
- [PULL 14/18] multifd: Fill offset and block for reception,
Juan Quintela <=
- [PULL 15/18] multifd: Shut down the QIO channels to avoid blocking the send threads when they are terminated., Juan Quintela, 2021/12/15
- [PULL 17/18] multifd: Make zstd compression method not use iovs, Juan Quintela, 2021/12/15
- [PULL 16/18] COLO: Move some trace code behind qemu_mutex_unlock_iothread(), Juan Quintela, 2021/12/15
- [PULL 18/18] multifd: Make zlib compression method not use iovs, Juan Quintela, 2021/12/15
- Re: [PULL 00/18] Migration 20211214 patches, Richard Henderson, 2021/12/15