qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

migration: Fix rate limiting issue on RDMA migration

RDMA migration implement save_page function for QEMUFile, but
ram_control_save_page do not increase bytes_xfer. So when doing
RDMA migration, it will use whole bandwidth.

Signed-off-by: Lidong Chen <lidongchen@tencent.com>
Message-Id: <1520692378-1835-1-git-send-email-lidongchen@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

authored by

Lidong Chen and committed by
Dr. David Alan Gilbert
e8a0f2f9 bdd847a0

+1 -1
+1 -1
migration/qemu-file.c
··· 253 253 if (f->hooks && f->hooks->save_page) { 254 254 int ret = f->hooks->save_page(f, f->opaque, block_offset, 255 255 offset, size, bytes_sent); 256 - 256 + f->bytes_xfer += size; 257 257 if (ret != RAM_SAVE_CONTROL_DELAYED) { 258 258 if (bytes_sent && *bytes_sent > 0) { 259 259 qemu_update_position(f, *bytes_sent);