migration/dirtyrate: skip sampling ramblock with size below MIN_RAMBLOCK_SIZE
commitf82583cdc05b89e5900e44ceacb6cc85f974b448
authorChuan Zheng <zhengchuan@huawei.com>
Wed, 16 Sep 2020 06:22:03 +0000 (16 14:22 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 25 Sep 2020 11:45:57 +0000 (25 12:45 +0100)
treec50862024368f8f239e8c8f66cad9d85342be18b
parent9c04387b88a7685ab2b1f77911a56e91d8f67b6d
migration/dirtyrate: skip sampling ramblock with size below MIN_RAMBLOCK_SIZE

In order to sample real RAM, skip ramblock with size below MIN_RAMBLOCK_SIZE
which is set as 128M.

Signed-off-by: Chuan Zheng <zhengchuan@huawei.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <1600237327-33618-9-git-send-email-zhengchuan@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/dirtyrate.c
migration/dirtyrate.h