migration/rdma: Don't use imaginary transfers
commit2ebe5d4d5aa4d11f02a2d52fa398a52a6a0dc2ee
authorJuan Quintela <quintela@redhat.com>
Mon, 15 May 2023 19:57:06 +0000 (15 21:57 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 29 Sep 2023 16:11:21 +0000 (29 18:11 +0200)
tree26702147da6227adaa12ef35761c8faaafca5649
parente33780351ceb8317dccec143e722ae8434d58c34
migration/rdma: Don't use imaginary transfers

RDMA protocol is completely asynchronous, so in qemu_rdma_save_page()
they "invent" that a byte has been transferred.  And then they call
qemu_file_credit_transfer() and ram_transferred_add() with that byte.
Just remove that calls as nothing has been sent.

Reviewed-by: Leonardo Bras <leobras@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230515195709.63843-14-quintela@redhat.com>
migration/qemu-file.c
migration/ram.c