summaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-04-29 12:11:50 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-06-01 11:42:25 -0300
commit1e96a149cf3d8aaa2e567921a992e1e9d0e62943 (patch)
treec7a503e5d170876cdb0f047cf15ff21138899187 /hmp-commands.hx
parent5dcfe35ea4bc1eadfd87b2cae4120ba64e3d3853 (diff)
downloadqemu-1e96a149cf3d8aaa2e567921a992e1e9d0e62943.tar.gz
qemu-1e96a149cf3d8aaa2e567921a992e1e9d0e62943.tar.bz2
qemu-1e96a149cf3d8aaa2e567921a992e1e9d0e62943.zip
HMP: Use QMP inject nmi implementation
This **CHANGES** the human monitor "nmi" command behavior. Currently it accepts an CPU argument which, when provided, will send the NMI to the specified CPU. This feature is of discussable value though and HMP shouldn't have more features than QMP, so let's use QMP's instead (it's also simpler). Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx9
1 files changed, 5 insertions, 4 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 834e6a8c87..6ad8806785 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -740,10 +740,11 @@ ETEXI
#if defined(TARGET_I386)
{
.name = "nmi",
- .args_type = "cpu_index:i",
- .params = "cpu",
- .help = "inject an NMI on the given CPU",
- .mhandler.cmd = do_inject_nmi,
+ .args_type = "",
+ .params = "",
+ .help = "inject an NMI on all guest's CPUs",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_inject_nmi,
},
#endif
STEXI