migration/ram: Reduce unnecessary rate limiting
authorKunkun Jiang <jiangkunkun@huawei.com>
Tue, 16 Mar 2021 12:57:15 +0000 (20:57 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 13 May 2021 17:21:13 +0000 (18:21 +0100)
commit23feba906e42747463aa233fb54c58d7f02430c9
treeee1fb3534404923f15cccb29061fe78792d5758a
parent1a37352277763220739290c689867540ec193d06
migration/ram: Reduce unnecessary rate limiting

When the host page is a huge page and something is sent in the
current iteration, migration_rate_limit() should be executed.
If not, it can be omitted.

Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210316125716.1243-2-jiangkunkun@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c