[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 11/13] migration/multifd: Print used_length of memory block
From: |
David Hildenbrand |
Subject: |
[PATCH v4 11/13] migration/multifd: Print used_length of memory block |
Date: |
Tue, 21 Apr 2020 10:52:58 +0200 |
We actually want to print the used_length, against which we check.
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Cc: "Dr. David Alan Gilbert" <address@hidden>
Cc: Juan Quintela <address@hidden>
Cc: Peter Xu <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
migration/multifd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/multifd.c b/migration/multifd.c
index cb6a4a3ab8..4f65c871a9 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -356,7 +356,7 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p,
Error **errp)
if (offset > (block->used_length - qemu_target_page_size())) {
error_setg(errp, "multifd: offset too long %" PRIu64
" (max " RAM_ADDR_FMT ")",
- offset, block->max_length);
+ offset, block->used_length);
return -1;
}
p->pages->iov[i].iov_base = block->host + offset;
--
2.25.1
- [PATCH v4 03/13] numa: Teach ram block notifiers about resizeable ram blocks, (continued)
- [PATCH v4 03/13] numa: Teach ram block notifiers about resizeable ram blocks, David Hildenbrand, 2020/04/21
- [PATCH v4 04/13] numa: Make all callbacks of ram block notifiers optional, David Hildenbrand, 2020/04/21
- [PATCH v4 05/13] migration/ram: Handle RAM block resizes during precopy, David Hildenbrand, 2020/04/21
- [PATCH v4 02/13] stubs/ram-block: Remove stubs that are no longer needed, David Hildenbrand, 2020/04/21
- [PATCH v4 06/13] exec: Relax range check in ram_block_discard_range(), David Hildenbrand, 2020/04/21
- [PATCH v4 07/13] migration/ram: Discard RAM when growing RAM blocks after ram_postcopy_incoming_init(), David Hildenbrand, 2020/04/21
- [PATCH v4 08/13] migration/ram: Simplify host page handling in ram_load_postcopy(), David Hildenbrand, 2020/04/21
- [PATCH v4 09/13] migration/ram: Consolidate variable reset after placement in ram_load_postcopy(), David Hildenbrand, 2020/04/21
- [PATCH v4 10/13] migration/ram: Handle RAM block resizes during postcopy, David Hildenbrand, 2020/04/21
- [PATCH v4 11/13] migration/multifd: Print used_length of memory block,
David Hildenbrand <=
- [PATCH v4 12/13] migration/ram: Use offset_in_ramblock() in range checks, David Hildenbrand, 2020/04/21
- [PATCH v4 13/13] migration/ram: Tolerate partially changed mappings in postcopy code, David Hildenbrand, 2020/04/21
- Re: [PATCH v4 00/13] migrate/ram: Fix resizing RAM blocks while migrating, David Hildenbrand, 2020/04/30