diff options
author | Jin Dongming <jin.dongming@np.css.fujitsu.com> | 2010-12-10 17:21:02 +0900 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-01-21 14:05:22 -0200 |
commit | d1a18b5c26283290f8294d67d0651f19a7ac46b7 (patch) | |
tree | 8703985bb377ee447302ad9341a82b21c424ba92 /hmp-commands.hx | |
parent | a4e1a68cb3051dcbb74d0ab3045f3908942a7ee3 (diff) | |
download | qemu-d1a18b5c26283290f8294d67d0651f19a7ac46b7.tar.gz qemu-d1a18b5c26283290f8294d67d0651f19a7ac46b7.tar.bz2 qemu-d1a18b5c26283290f8294d67d0651f19a7ac46b7.zip |
Add "broadcast" option for mce command
When the following test case is injected with mce command, maybe user could not
get the expected result.
DATA
command cpu bank status mcg_status addr misc
(qemu) mce 1 1 0xbd00000000000000 0x05 0x1234 0x8c
Expected Result
panic type: "Fatal Machine check"
That is because each mce command can only inject the given cpu and could not
inject mce interrupt to other cpus. So user will get the following result:
panic type: "Fatal machine check on current CPU"
"broadcast" option is used for injecting dummy data into other cpus. Injecting
mce with this option the expected result could be gotten.
Usage:
Broadcast[on]
command broadcast cpu bank status mcg_status addr misc
(qemu) mce -b 1 1 0xbd00000000000000 0x05 0x1234 0x8c
Broadcast[off]
command cpu bank status mcg_status addr misc
(qemu) mce 1 1 0xbd00000000000000 0x05 0x1234 0x8c
Signed-off-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index 1cea572b15..d65a41f523 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1116,9 +1116,9 @@ ETEXI { .name = "mce", - .args_type = "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", - .params = "cpu bank status mcgstatus addr misc", - .help = "inject a MCE on the given CPU", + .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", + .params = "[-b] cpu bank status mcgstatus addr misc", + .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]", .mhandler.cmd = do_inject_mce, }, |