migration: Move last_sent_block into PageSearchStatus
commitec6f3ab9f489ecabec2b660887c38b6a95c85e41
authorPeter Xu <peterx@redhat.com>
Tue, 11 Oct 2022 21:55:56 +0000 (11 17:55 -0400)
committerJuan Quintela <quintela@redhat.com>
Thu, 15 Dec 2022 09:30:37 +0000 (15 10:30 +0100)
treef9e97c1035c7f5744b5995448f25c2aab8f5d621
parentf166876423a4c8ba706e31075e21ae4ff92b4332
migration: Move last_sent_block into PageSearchStatus

Since we use PageSearchStatus to represent a channel, it makes perfect
sense to keep last_sent_block (aka, leverage RAM_SAVE_FLAG_CONTINUE) to be
per-channel rather than global because each channel can be sending
different pages on ramblocks.

Hence move it from RAMState into PageSearchStatus.

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