]> git.proxmox.com Git - qemu.git/commit - migration.c
migration: always use vm_stop_force_state
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:08 +0000 (17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:00 +0000 (13:32 +0100)
commit891518abd804401978e402d588733e282be960ad
treecac03ba68bfef0e813d7977e3253d211e13cf4ec
parent5da5aad068def65b5e278a6380192d4bfe279585
migration: always use vm_stop_force_state

vm_stop_force_state does:

    if (runstate_is_running()) {
        vm_stop(state);
    } else {
        runstate_set(state);
    }

migration.c does:

    if (runstate_is_running()) {
        vm_stop(state);
    } else {
        vm_stop_force_state(state);
    }

The code run is the same even if we always use vm_stop_force_state in
migration.c.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration.c