mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Don't iterate on precopy-only devices during postcopy
During the postcopy phase we must not call the iterate method on precopy-only devices, since they may have done some cleanup during the _complete call at the end of the precopy phase. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
663e6c1df8
commit
35ecd943e7
3 changed files with 13 additions and 4 deletions
|
@ -1628,7 +1628,7 @@ static void *migration_thread(void *opaque)
|
|||
continue;
|
||||
}
|
||||
/* Just another iteration step */
|
||||
qemu_savevm_state_iterate(s->file);
|
||||
qemu_savevm_state_iterate(s->file, entered_postcopy);
|
||||
} else {
|
||||
trace_migration_thread_low_pending(pending_size);
|
||||
migration_completion(s, current_active_state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue