diff options
author | Ivan Ren <ivanren@tencent.com> | 2019-07-30 13:33:36 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-08-14 17:33:14 +0100 |
commit | 81507f6b7e87468f24ed5886559feda15fe2db0c (patch) | |
tree | d822855bde3dfd61c179f956bed7974abbbbc8ba /migration/ram.c | |
parent | 1b81c974ccfd536aceef840e220912b142a7dda0 (diff) | |
download | qemu-81507f6b7e87468f24ed5886559feda15fe2db0c.zip qemu-81507f6b7e87468f24ed5886559feda15fe2db0c.tar.gz qemu-81507f6b7e87468f24ed5886559feda15fe2db0c.tar.bz2 |
migration: update ram_counters for multifd sync packet
Multifd sync will send MULTIFD_FLAG_SYNC flag info to destination, add
these bytes to ram_counters record.
Signed-off-by: Ivan Ren <ivanren@tencent.com>
Suggested-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <1564464816-21804-4-git-send-email-ivanren@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c index 1179519..30f13ff 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1085,6 +1085,8 @@ static void multifd_send_sync_main(RAMState *rs) p->flags |= MULTIFD_FLAG_SYNC; p->pending_job++; qemu_file_update_transfer(rs->f, p->packet_len); + ram_counters.multifd_bytes += p->packet_len; + ram_counters.transferred += p->packet_len; qemu_mutex_unlock(&p->mutex); qemu_sem_post(&p->sem); } |