From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwWxI-0001Du-Ux for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:42:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwWxC-0004up-H6 for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:42:20 -0500 Received: from [222.73.24.84] (port=56607 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwWxC-0004tX-8r for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:42:14 -0500 Message-ID: <4D74A8C9.2020408@cn.fujitsu.com> Date: Mon, 07 Mar 2011 17:43:37 +0800 From: Lai Jiangshan MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 0/2 V7] add inject-nmi qmp command List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Lai Jiangshan , kvm@vger.kernel.org, qemu-devel@nongnu.org, Markus Armbruster , Avi Kivity From: Lai Jiangshan 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