[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/23] multifd: Fill offset and block for reception
From: |
Juan Quintela |
Subject: |
[PATCH v2 08/23] multifd: Fill offset and block for reception |
Date: |
Wed, 24 Nov 2021 10:54:45 +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>
---
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
- [PATCH v2 00/23] Migration: Transmit and detect zero pages in the multifd threads, Juan Quintela, 2021/11/24
- [PATCH v2 01/23] multifd: Delete useless operation, Juan Quintela, 2021/11/24
- [PATCH v2 02/23] migration: Never call twice qemu_target_page_size(), Juan Quintela, 2021/11/24
- [PATCH v2 03/23] multifd: Rename used field to num, Juan Quintela, 2021/11/24
- [PATCH v2 04/23] multifd: Add missing documention, Juan Quintela, 2021/11/24
- [PATCH v2 05/23] multifd: The variable is only used inside the loop, Juan Quintela, 2021/11/24
- [PATCH v2 07/23] multifd: remove used parameter from send_recv_pages() method, Juan Quintela, 2021/11/24
- [PATCH v2 06/23] multifd: remove used parameter from send_prepare() method, Juan Quintela, 2021/11/24
- [PATCH v2 09/23] multifd: Make zstd compression method not use iovs, Juan Quintela, 2021/11/24
- [PATCH v2 08/23] multifd: Fill offset and block for reception,
Juan Quintela <=
- [PATCH v2 10/23] multifd: Make zlib compression method not use iovs, Juan Quintela, 2021/11/24
- [PATCH v2 11/23] multifd: Move iov from pages to params, Juan Quintela, 2021/11/24
- [PATCH v2 13/23] multifd: Make zstd use iov's, Juan Quintela, 2021/11/24
- [PATCH v2 12/23] multifd: Make zlib use iov's, Juan Quintela, 2021/11/24
- [PATCH v2 14/23] multifd: Remove send_write() method, Juan Quintela, 2021/11/24
- Re: [PATCH v2 00/23] Migration: Transmit and detect zero pages in the multifd threads, Juan Quintela, 2021/11/24