Revision f8502cfb

b/target-i386/kvm.c
239 239
    struct kvm_x86_mce_data *data = _data;
240 240
    int r;
241 241

  
242
    /* If there is an MCE excpetion being processed, ignore this SRAO MCE */
243
    r = kvm_mce_in_exception(data->env);
244
    if (r == -1)
245
        fprintf(stderr, "Failed to get MCE status\n");
246
    else if (r && !(data->mce->status & MCI_STATUS_AR))
247
        return;
242
    /* If there is an MCE exception being processed, ignore this SRAO MCE */
243
    if ((data->env->mcg_cap & MCG_SER_P) &&
244
        !(data->mce->status & MCI_STATUS_AR)) {
245
        r = kvm_mce_in_exception(data->env);
246
        if (r == -1) {
247
            fprintf(stderr, "Failed to get MCE status\n");
248
        } else if (r) {
249
            return;
250
        }
251
    }
248 252

  
249 253
    r = kvm_set_mce(data->env, data->mce);
250 254
    if (r < 0) {

Also available in: Unified diff