static void loadvm_postcopy_handle_run_bh(void *opaque)

{

    Error *local_err = NULL;

    MigrationIncomingState *mis = opaque;



    /* TODO we should move all of this lot into postcopy_ram.c or a shared code

     * in migration.c

     */

    cpu_synchronize_all_post_init();



    qemu_announce_self();



    /* Make sure all file formats flush their mutable metadata */

    bdrv_invalidate_cache_all(&local_err);

    if (local_err) {

        error_report_err(local_err);

    }



    trace_loadvm_postcopy_handle_run_cpu_sync();

    cpu_synchronize_all_post_init();



    trace_loadvm_postcopy_handle_run_vmstart();



    if (autostart) {

        /* Hold onto your hats, starting the CPU */

        vm_start();

    } else {

        /* leave it paused and let management decide when to start the CPU */

        runstate_set(RUN_STATE_PAUSED);

    }



    qemu_bh_delete(mis->bh);

}

static void loadvm_postcopy_handle_run_bh(void *opaque)

{

    Error *local_err = NULL;

    MigrationIncomingState *mis = opaque;



    





    cpu_synchronize_all_post_init();



    qemu_announce_self();



    

    bdrv_invalidate_cache_all(&local_err);

    if (local_err) {

        error_report_err(local_err);

    }



    trace_loadvm_postcopy_handle_run_cpu_sync();

    cpu_synchronize_all_post_init();



    trace_loadvm_postcopy_handle_run_vmstart();



    if (autostart) {

        

        vm_start();

    } else {

        

        runstate_set(RUN_STATE_PAUSED);

    }



    qemu_bh_delete(mis->bh);

}

    MigrationIncomingState *mis = opaque;     qemu_bh_delete(mis->bh);
static void FUNC_0(void *VAR_0)

{

    Error *local_err = NULL;

    MigrationIncomingState *mis = VAR_0;



    





    cpu_synchronize_all_post_init();



    qemu_announce_self();



    

    bdrv_invalidate_cache_all(&local_err);

    if (local_err) {

        error_report_err(local_err);

    }



    trace_loadvm_postcopy_handle_run_cpu_sync();

    cpu_synchronize_all_post_init();



    trace_loadvm_postcopy_handle_run_vmstart();



    if (autostart) {

        

        vm_start();

    } else {

        

        runstate_set(RUN_STATE_PAUSED);

    }



    qemu_bh_delete(mis->bh);

}

static void FUNC_0(void *VAR_0)
{ Error *local_err = NULL; MigrationIncomingState *mis = VAR_0; cpu_synchronize_all_post_init(); qemu_announce_self(); bdrv_invalidate_cache_all(&local_err); if (local_err) { error_report_err(local_err); } trace_loadvm_postcopy_handle_run_cpu_sync(); cpu_synchronize_all_post_init(); trace_loadvm_postcopy_handle_run_vmstart(); if (autostart) { vm_start(); } else { runstate_set(RUN_STATE_PAUSED); } qemu_bh_delete(mis->bh); }