migration: clear the memory region dirty bitmap when skipping free pages
commit3143577d6a3f363514219c03d936e653ede44f32
authorWei Wang <wei.w.wang@intel.com>
Thu, 22 Jul 2021 08:30:55 +0000 (22 04:30 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 26 Jul 2021 11:50:13 +0000 (26 12:50 +0100)
tree7f04e55e0e3c7cc9d0f6dce104ee07b62f4ea5c4
parent39675ffffb3394d44b880d083a214c5e44786170
migration: clear the memory region dirty bitmap when skipping free pages

When skipping free pages to send, their corresponding dirty bits in the
memory region dirty bitmap need to be cleared. Otherwise the skipped
pages will be sent in the next round after the migration thread syncs
dirty bits from the memory region dirty bitmap.

Cc: David Hildenbrand <david@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Reported-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Message-Id: <20210722083055.23352-1-wei.w.wang@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c