OSDN Git Service

migration: Fix postcopy bw for recovery
authorPeter Xu <peterx@redhat.com>
Fri, 6 Sep 2019 13:01:03 +0000 (21:01 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Sep 2019 10:21:25 +0000 (11:21 +0100)
commit8504ddeca0d1f592877dba8dc0db44b4d7fd8c52
treea851ab0fe49ada1d53dff603b5ca8cbb8b0414d9
parent3af31a3469342a621949b721f3a020b452092bf9
migration: Fix postcopy bw for recovery

We've got max-postcopy-bandwidth parameter but it's not applied
correctly after a postcopy recovery so the recovered migration stream
will still eat the whole net bandwidth.  Fix that up.

Reported-by: Xiaohui Li <xiaohli@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190906130103.20961-1-peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c