]> git.proxmox.com Git - mirror_qemu.git/commit - hmp-commands.hx
Add "broadcast" option for mce command
authorJin Dongming <jin.dongming@np.css.fujitsu.com>
Fri, 10 Dec 2010 08:21:02 +0000 (17:21 +0900)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 21 Jan 2011 16:05:22 +0000 (14:05 -0200)
commit31ce5e0c49821d92fb30cce2f3055ef33613b287
tree8703985bb377ee447302ad9341a82b21c424ba92
parentb3cd24e04a2aea342429c09ed93468dd3206fede
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>
cpu-all.h
hmp-commands.hx
monitor.c
target-i386/helper.c
target-i386/kvm.c
target-i386/kvm_x86.h