From: Lai Jiangshan <la...@cn.fujitsu.com>
Date: Mon, 7 Mar 2011 17:08:46 +0800
Subject: [PATCH 0/2 V7] qemu,qmp: add inject-nmi qmp command

The new qmp command "inject-nmi" is different from the hmp
monitor command "nmi". The first one injects an NMI on all CPUs,
and the second one injects an NMI to the specified CPU.

The first one(qmp command) simulates the Real hardware NMI button,
but I don't want to change the existed hmp monitor command "nmi",
so I didn't change it except the handler name. Maybe we will
add a qmp command "inject-nmi-cpu" in future, but not now.
(it seems it is only requested by me currently)

The qmp command "inject-nmi" is only supported for x86 guest
currently, it will returns "Unsupported" error for non-x86 guest.
This error and this behavior are described in the comments.

Lai Jiangshan (2):
  qemu,qmp: QError: New QERR_UNSUPPORTED
  qemu,qmp: add inject-nmi qmp command

 hmp-commands.hx |    2 +-
 monitor.c       |   18 +++++++++++++++++-
 qerror.h        |    3 +++
 qmp-commands.hx |   29 +++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+), 2 deletions(-)

-- 
1.7.4

Reply via email to