Revision 747461c7 monitor.c

b/monitor.c
2709 2709
    uint64_t mcg_status = qdict_get_int(qdict, "mcg_status");
2710 2710
    uint64_t addr = qdict_get_int(qdict, "addr");
2711 2711
    uint64_t misc = qdict_get_int(qdict, "misc");
2712
    int broadcast = qdict_get_try_bool(qdict, "broadcast", 0);
2712
    int flags = MCE_INJECT_UNCOND_AO;
2713 2713

  
2714
    if (qdict_get_try_bool(qdict, "broadcast", 0)) {
2715
        flags |= MCE_INJECT_BROADCAST;
2716
    }
2714 2717
    for (cenv = first_cpu; cenv != NULL; cenv = cenv->next_cpu) {
2715 2718
        if (cenv->cpu_index == cpu_index) {
2716 2719
            cpu_x86_inject_mce(mon, cenv, bank, status, mcg_status, addr, misc,
2717
                               broadcast);
2720
                               flags);
2718 2721
            break;
2719 2722
        }
2720 2723
    }

Also available in: Unified diff