summary refs log tree commit diff stats
path: root/hw/core/vm-change-state-handler.c
diff options
context:
space:
mode:
authorElena Ufimtseva <elena.ufimtseva@oracle.com>2023-10-11 11:43:57 -0700
committerJuan Quintela <quintela@redhat.com>2023-10-17 09:25:13 +0200
commit68b6e000484c6df34d5cd097e5ae94e9612f5df7 (patch)
tree0eac1158d0ab6ac49f1f255560e1a2a3cf89c3f5 /hw/core/vm-change-state-handler.c
parent60c7981aa3e84eb6d926fd4f7bb4aca4d2edf7cc (diff)
downloadfocaccia-qemu-68b6e000484c6df34d5cd097e5ae94e9612f5df7.tar.gz
focaccia-qemu-68b6e000484c6df34d5cd097e5ae94e9612f5df7.zip
multifd: fix counters in multifd_send_thread
Previous commit cbec7eb76879d419e7dbf531ee2506ec0722e825
"migration/multifd: Compute transferred bytes correctly"
removed accounting for packet_len in non-rdma
case, but the next_packet_size only accounts for pages, not for
the header packet (normal_pages * PAGE_SIZE) that is being sent
as iov[0]. The packet_len part should be added to account for
the size of MultiFDPacket and the array of the offsets.

Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231011184358.97349-4-elena.ufimtseva@oracle.com>
Diffstat (limited to 'hw/core/vm-change-state-handler.c')
0 files changed, 0 insertions, 0 deletions