static void migrate_fd_completed(MigrationState *s)

{

    DPRINTF("setting completed state\n");

    migrate_fd_cleanup(s);

    if (s->state == MIG_STATE_ACTIVE) {

        s->state = MIG_STATE_COMPLETED;

        runstate_set(RUN_STATE_POSTMIGRATE);

    }

    notifier_list_notify(&migration_state_notifiers, s);

}

static void migrate_fd_completed(MigrationState *s)

{

    DPRINTF("setting completed state\n");

    migrate_fd_cleanup(s);

    if (s->state == MIG_STATE_ACTIVE) {

        s->state = MIG_STATE_COMPLETED;

        runstate_set(RUN_STATE_POSTMIGRATE);

    }

    notifier_list_notify(&migration_state_notifiers, s);

}

static void FUNC_0(MigrationState *VAR_0)

{

    DPRINTF("setting completed state\n");

    migrate_fd_cleanup(VAR_0);

    if (VAR_0->state == MIG_STATE_ACTIVE) {

        VAR_0->state = MIG_STATE_COMPLETED;

        runstate_set(RUN_STATE_POSTMIGRATE);

    }

    notifier_list_notify(&migration_state_notifiers, VAR_0);

}

static void FUNC_0(MigrationState *VAR_0)
{ DPRINTF("setting completed state\n"); migrate_fd_cleanup(VAR_0); if (VAR_0->state == MIG_STATE_ACTIVE) { VAR_0->state = MIG_STATE_COMPLETED; runstate_set(RUN_STATE_POSTMIGRATE); } notifier_list_notify(&migration_state_notifiers, VAR_0); }