]> git.proxmox.com Git - mirror_qemu.git/commit
Postcopy+spice: Pass spice migration data earlier
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 22 Feb 2016 17:17:32 +0000 (17:17 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Feb 2016 11:05:02 +0000 (12:05 +0100)
commitb82fc321bf02aaceea0beb4dfabb4ca86a9a5ff6
tree1fb20198c649bbfba261fc60eec192e69fcf03d1
parent22672a3798f1d705c2b1e14a246efd4a8e4bc661
Postcopy+spice: Pass spice migration data earlier

Spice hooks the migration status changes to figure out when to
transmit information to the new spice server; but the migration
status in postcopy doesn't quite fit - the destination starts
running before the end of the source migration.

It's not a case of hanging off the migration status change to
postcopy-active either, since that happens before we stop the
guest CPU.

Fix it by sending a notify just after sending the device state,
and adding a flag that can be tested by the notify receiver.

Symptom:
   spice handover doesn't work with the error:
   red_worker.c:11540:display_channel_wait_for_migrate_data: timeout

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-id: 1456161452-25318-1-git-send-email-dgilbert@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/migration/migration.h
migration/migration.c
ui/spice-core.c