]> git.proxmox.com Git - mirror_qemu.git/commit - migration/ram.c
migration: set bytes_xfer_* outside of autoconverge logic
authorFelipe Franciosi <felipe@nutanix.com>
Wed, 24 May 2017 16:10:02 +0000 (17:10 +0100)
committerJuan Quintela <quintela@redhat.com>
Wed, 31 May 2017 07:39:20 +0000 (09:39 +0200)
commitd2a4d85a8a786e1e59fc631c34dd474752810463
treedf0627f3cf65336f2b2cb3625f02b391b7c2ac43
parentd693c6f10ff46c661b055288abae11deb6181a61
migration: set bytes_xfer_* outside of autoconverge logic

The bytes_xfer_now/prev counters are only used by the auto convergence
logic. However, they are used alongside the dirty_pages_rate counter,
which is calculated (and required) outside of this logic. The problem
with this approach is that if the auto convergence capability is changed
while a migration is ongoing, the relationship of the counters will be
broken.

This moves the management of bytes_xfer_now/prev counters outside of the
auto convergence logic to address this issue.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c