void migrate_fd_connect(MigrationState *s)

{

    s->state = MIG_STATE_SETUP;

    trace_migrate_set_state(MIG_STATE_SETUP);



    /* This is a best 1st approximation. ns to ms */

    s->expected_downtime = max_downtime/1000000;

    s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);



    qemu_file_set_rate_limit(s->file,

                             s->bandwidth_limit / XFER_LIMIT_RATIO);



    qemu_thread_create(&s->thread, migration_thread, s,

                       QEMU_THREAD_JOINABLE);

    notifier_list_notify(&migration_state_notifiers, s);

}

void migrate_fd_connect(MigrationState *s)

{

    s->state = MIG_STATE_SETUP;

    trace_migrate_set_state(MIG_STATE_SETUP);



    

    s->expected_downtime = max_downtime/1000000;

    s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);



    qemu_file_set_rate_limit(s->file,

                             s->bandwidth_limit / XFER_LIMIT_RATIO);



    qemu_thread_create(&s->thread, migration_thread, s,

                       QEMU_THREAD_JOINABLE);

    notifier_list_notify(&migration_state_notifiers, s);

}

    notifier_list_notify(&migration_state_notifiers, s);
void FUNC_0(MigrationState *VAR_0)

{

    VAR_0->state = MIG_STATE_SETUP;

    trace_migrate_set_state(MIG_STATE_SETUP);



    

    VAR_0->expected_downtime = max_downtime/1000000;

    VAR_0->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, VAR_0);



    qemu_file_set_rate_limit(VAR_0->file,

                             VAR_0->bandwidth_limit / XFER_LIMIT_RATIO);



    qemu_thread_create(&VAR_0->thread, migration_thread, VAR_0,

                       QEMU_THREAD_JOINABLE);

    notifier_list_notify(&migration_state_notifiers, VAR_0);

}

void FUNC_0(MigrationState *VAR_0)
{ VAR_0->state = MIG_STATE_SETUP; trace_migrate_set_state(MIG_STATE_SETUP); VAR_0->expected_downtime = max_downtime/1000000; VAR_0->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, VAR_0); qemu_file_set_rate_limit(VAR_0->file,
VAR_0->bandwidth_limit / XFER_LIMIT_RATIO); qemu_thread_create(&VAR_0->thread, migration_thread, VAR_0,
QEMU_THREAD_JOINABLE); notifier_list_notify(&migration_state_notifiers, VAR_0); }