diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-03-02 08:56:09 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-15 01:19:05 -0300 |
commit | 316378e4d0214b45cfeaa01609aca4dabb18d78b (patch) | |
tree | aa6122d6e8259e627bfea7e2c766dd88ec3aab84 /monitor.c | |
parent | 2fa11da0c3a6614b15e6007389986a7c2b31ac49 (diff) | |
download | qemu-316378e4d0214b45cfeaa01609aca4dabb18d78b.zip qemu-316378e4d0214b45cfeaa01609aca4dabb18d78b.tar.gz qemu-316378e4d0214b45cfeaa01609aca4dabb18d78b.tar.bz2 |
x86: Refine error reporting of MCE injection services
As this service is used by the human monitor, make sure that errors get
reported to the right channel, and also raise the verbosity.
This requires to move Monitor typedef in qemu-common.h to resolve the
include dependency.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
CC: Huang Ying <ying.huang@intel.com>
CC: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
CC: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2712,8 +2712,8 @@ static void do_inject_mce(Monitor *mon, const QDict *qdict) int broadcast = qdict_get_try_bool(qdict, "broadcast", 0); for (cenv = first_cpu; cenv != NULL; cenv = cenv->next_cpu) { - if (cenv->cpu_index == cpu_index && cenv->mcg_cap) { - cpu_x86_inject_mce(cenv, bank, status, mcg_status, addr, misc, + if (cenv->cpu_index == cpu_index) { + cpu_x86_inject_mce(mon, cenv, bank, status, mcg_status, addr, misc, broadcast); break; } |