Skip to content
  • Stefan Hajnoczi's avatar
    migration: fix spice migration · 02edd2e7
    Stefan Hajnoczi authored
    Commit 29ae8a41
    
     ("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: default avatarKevin Wolf <kwolf@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    02edd2e7