static int kvm_mce_in_exception(CPUState *env)

{

    struct kvm_msr_entry msr_mcg_status = {

        .index = MSR_MCG_STATUS,

    };

    int r;



    r = kvm_get_msr(env, &msr_mcg_status, 1);

    if (r == -1 || r == 0) {

        return -1;

    }

    return !!(msr_mcg_status.data & MCG_STATUS_MCIP);

}

static int kvm_mce_in_exception(CPUState *env)

{

    struct kvm_msr_entry msr_mcg_status = {

        .index = MSR_MCG_STATUS,

    };

    int r;



    r = kvm_get_msr(env, &msr_mcg_status, 1);

    if (r == -1 || r == 0) {

        return -1;

    }

    return !!(msr_mcg_status.data & MCG_STATUS_MCIP);

}

static int FUNC_0(CPUState *VAR_0)

{

    struct kvm_msr_entry VAR_1 = {

        .index = MSR_MCG_STATUS,

    };

    int VAR_2;



    VAR_2 = kvm_get_msr(VAR_0, &VAR_1, 1);

    if (VAR_2 == -1 || VAR_2 == 0) {

        return -1;

    }

    return !!(VAR_1.data & MCG_STATUS_MCIP);

}

static int FUNC_0(CPUState *VAR_0)
{ struct kvm_msr_entry VAR_1 = { .index = MSR_MCG_STATUS,
}; int VAR_2; VAR_2 = kvm_get_msr(VAR_0, &VAR_1, 1); if (VAR_2 == -1 || VAR_2 == 0) { return -1; } return !!(VAR_1.data & MCG_STATUS_MCIP); }