Skip to content
  • Luiz Capitulino's avatar
    runstate: Allow user to migrate twice · 8a9236f1
    Luiz Capitulino authored
    
    
    It should be a matter of allowing the transition POSTMIGRATE ->
    FINISH_MIGRATE, but it turns out that the VM won't do the
    transition the second time because it's already stopped.
    
    So this commit also adds vm_stop_force_state() which performs
    the transition even if the VM is already stopped.
    
    While there also allow other states to migrate.
    
    Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
    8a9236f1