migration: Do chunk page in postcopy_each_ram_send_discard()
commitf30c2e5ba81b8d388b7beeae84e6db5ea8220924
authorPeter Xu <peterx@redhat.com>
Tue, 7 Dec 2021 11:50:13 +0000 (7 19:50 +0800)
committerJuan Quintela <quintela@redhat.com>
Fri, 28 Jan 2022 14:38:23 +0000 (28 15:38 +0100)
treee225cddbf3fa67a80d8203bf32d52eabb45c5393
parente3fbf760218fe06d0c95bb595774c76206219e2f
migration: Do chunk page in postcopy_each_ram_send_discard()

Right now we loop ramblocks for twice, the 1st time chunk the dirty bits with
huge page information; the 2nd time we send the discard ranges.  That's not
necessary - we can do them in a single loop.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c