diff options
author | Peter Xu <peterx@redhat.com> | 2022-10-04 14:24:26 -0400 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-11-21 11:58:10 +0100 |
commit | 4934a5dd7c68f5ab15f17498db4fc20ed6db9578 (patch) | |
tree | 6c7a43e0acaf1706ae878c1caecf2ca0d5f4940f /target/avr | |
parent | 4cc47b439594327b213f9b6a67803f1a503c2cb7 (diff) | |
download | qemu-4934a5dd7c68f5ab15f17498db4fc20ed6db9578.zip qemu-4934a5dd7c68f5ab15f17498db4fc20ed6db9578.tar.gz qemu-4934a5dd7c68f5ab15f17498db4fc20ed6db9578.tar.bz2 |
migration: Fix possible infinite loop of ram save process
When starting ram saving procedure (especially at the completion phase),
always set last_seen_block to non-NULL to make sure we can always correctly
detect the case where "we've migrated all the dirty pages".
Then we'll guarantee both last_seen_block and pss.block will be valid
always before the loop starts.
See the comment in the code for some details.
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>
Diffstat (limited to 'target/avr')
0 files changed, 0 insertions, 0 deletions