summaryrefslogtreecommitdiffstats
path: root/qemu-monitor.hx
diff options
context:
space:
mode:
authorHuang Ying2009-06-23 04:05:14 +0200
committerAnthony Liguori2009-07-09 23:04:53 +0200
commit79c4f6b08009a1d23177c2be8bd003253cf3686a (patch)
treec9a9e72451d20ba2ae8e0f5a14301522281add70 /qemu-monitor.hx
parentMerge commit 'linux-user/linux-user-for-upstream' into tmp-staging (diff)
downloadqemu-79c4f6b08009a1d23177c2be8bd003253cf3686a.tar.gz
qemu-79c4f6b08009a1d23177c2be8bd003253cf3686a.tar.xz
qemu-79c4f6b08009a1d23177c2be8bd003253cf3686a.zip
QEMU: MCE: Add MCE simulation to qemu/tcg
- MCE features are initialized when VCPU is intialized according to CPUID. - A monitor command "mce" is added to inject a MCE. - A new interrupt mask: CPU_INTERRUPT_MCE is added to inject the MCE. aliguori: fix build for linux-user Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-monitor.hx')
-rw-r--r--qemu-monitor.hx8
1 files changed, 8 insertions, 0 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index dc10b7589b..62edbcde75 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -615,6 +615,14 @@ Remove all matches from the access control list, and set the default
policy back to @code{deny}.
ETEXI
+#if defined(TARGET_I386)
+ { "mce", "iillll", do_inject_mce, "cpu bank status mcgstatus addr misc", "inject a MCE on the given CPU"},
+#endif
+STEXI
+@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
+Inject an MCE on the given CPU (x86 only).
+ETEXI
+
STEXI
@end table
ETEXI