static void kvm_inject_x86_mce_on(CPUState *env, struct kvm_x86_mce *mce,

                                  int flag)

{

    struct kvm_x86_mce_data data = {

        .env = env,

        .mce = mce,

        .abort_on_error = (flag & ABORT_ON_ERROR),

    };



    if (!env->mcg_cap) {

        fprintf(stderr, "MCE support is not enabled!\n");

        return;

    }



    run_on_cpu(env, kvm_do_inject_x86_mce, &data);

}

static void kvm_inject_x86_mce_on(CPUState *env, struct kvm_x86_mce *mce,

                                  int flag)

{

    struct kvm_x86_mce_data data = {

        .env = env,

        .mce = mce,

        .abort_on_error = (flag & ABORT_ON_ERROR),

    };



    if (!env->mcg_cap) {

        fprintf(stderr, "MCE support is not enabled!\n");

        return;

    }



    run_on_cpu(env, kvm_do_inject_x86_mce, &data);

}

static void FUNC_0(CPUState *VAR_0, struct kvm_x86_mce *VAR_1,

                                  int VAR_2)

{

    struct kvm_x86_mce_data VAR_3 = {

        .VAR_0 = VAR_0,

        .VAR_1 = VAR_1,

        .abort_on_error = (VAR_2 & ABORT_ON_ERROR),

    };



    if (!VAR_0->mcg_cap) {

        fprintf(stderr, "MCE support is not enabled!\n");

        return;

    }



    run_on_cpu(VAR_0, kvm_do_inject_x86_mce, &VAR_3);

}

static void FUNC_0(CPUState *VAR_0, struct kvm_x86_mce *VAR_1,
int VAR_2)
{ struct kvm_x86_mce_data VAR_3 = { .VAR_0 = VAR_0,
.VAR_1 = VAR_1,
.abort_on_error = (VAR_2 & ABORT_ON_ERROR),
}; if (!VAR_0->mcg_cap) { fprintf(stderr, "MCE support is not enabled!\n"); return; } run_on_cpu(VAR_0, kvm_do_inject_x86_mce, &VAR_3); }