mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Start up a postcopy/listener thread ready for incoming page data
The loading of a device state (during postcopy) may access guest memory that's still on the source machine and thus might need a page fill; split off a separate thread that handles the incoming page data so that the original incoming migration code can finish off the device data. 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
c4faeed231
commit
c76201ab52
4 changed files with 90 additions and 1 deletions
|
@ -1441,6 +1441,12 @@ static int postcopy_start(MigrationState *ms, bool *old_vm_running)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure the receiver can get incoming pages before we send the rest
|
||||
* of the state
|
||||
*/
|
||||
qemu_savevm_send_postcopy_listen(fb);
|
||||
|
||||
qemu_savevm_state_complete_precopy(fb);
|
||||
qemu_savevm_send_ping(fb, 3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue