From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lai Jiangshan Subject: [PATCH 0/2 V7] add inject-nmi qmp command Date: Mon, 07 Mar 2011 17:43:37 +0800 Message-ID: <4D74A8C9.2020408@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Markus Armbruster , Anthony Liguori , Lai Jiangshan , kvm@vger.kernel.org, qemu-devel@nongnu.org, Avi Kivity To: Luiz Capitulino Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:54487 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753574Ab1CGJmJ (ORCPT ); Mon, 7 Mar 2011 04:42:09 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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