mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: fix spice migration
Commit 29ae8a4133
("rdma: introduce
MIG_STATE_NONE and change MIG_STATE_SETUP state transition") changed the
state transitions during migration setup.
Spice used to be notified with MIG_STATE_ACTIVE and it detected this
using migration_is_active(). Spice is now notified with
MIG_STATE_SETUP and migration_is_active() no longer works.
Replace migration_is_active() with migration_in_setup() to fix spice
migration.
Cc: Michael R. Hines <mrhines@us.ibm.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
9287ac271d
commit
02edd2e766
3 changed files with 4 additions and 4 deletions
|
@ -563,7 +563,7 @@ static void migration_state_notifier(Notifier *notifier, void *data)
|
|||
{
|
||||
MigrationState *s = data;
|
||||
|
||||
if (migration_is_active(s)) {
|
||||
if (migration_in_setup(s)) {
|
||||
spice_server_migrate_start(spice_server);
|
||||
} else if (migration_has_finished(s)) {
|
||||
spice_server_migrate_end(spice_server, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue