From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47879 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6jJG-0005kB-VM for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6jJ8-0000Bi-CB for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:55:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6jJ8-00008l-06 for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:55:02 -0400 Message-ID: <4D99BF99.1040305@redhat.com> Date: Mon, 04 Apr 2011 15:54:49 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command References: <4D74A8C9.2020408@cn.fujitsu.com> <4D74A974.6090509@cn.fujitsu.com> <20110404105949.GA30324@redhat.com> In-Reply-To: <20110404105949.GA30324@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Lai Jiangshan , Lai Jiangshan , kvm@vger.kernel.org, qemu-devel@nongnu.org, Markus Armbruster , Luiz Capitulino On 04/04/2011 01:59 PM, Daniel P. Berrange wrote: > Interesting that with HMP you need to specify a single CPU index, but > with QMP it is injecting to all CPUs at once. Is there any compelling > reason why we'd ever need the ability to only inject to a single CPU > from an app developer POV ? When a PC has an NMI button, it is (I presume) connected to all CPUs' LINT1 pin, which is often configured as an NMI input. So the all-cpu variant corresponds to real hardware, while the single-cpu variant doesn't. wrt the app developer POV, the only use I'm aware of is that you can configure Windows to dump core when the NMI button is pressed and thus debug driver problems. It's likely more reliable when sent to all cpus. -- error compiling committee.c: too many arguments to function