From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH v3] qemu, qmp: convert do_inject_nmi() to QObject, QError Date: Thu, 16 Dec 2010 12:47:37 +0100 Message-ID: References: <4D088F27.8000909@cn.fujitsu.com> <20101215150911.14e1693f@doriath> <4D08F868.5090100@redhat.com> <20101215152606.078147ad@doriath> <20101215160000.16f85795@doriath> <4D09D5EA.7070000@redhat.com> <20101216084815.3ca77188@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , qemu-devel@nongnu.org, aliguori@us.ibm.com, kvm@vger.kernel.org, Lai Jiangshan To: Luiz Capitulino Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57818 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755633Ab0LPLsF (ORCPT ); Thu, 16 Dec 2010 06:48:05 -0500 In-Reply-To: <20101216084815.3ca77188@doriath> (Luiz Capitulino's message of "Thu, 16 Dec 2010 08:48:15 -0200") Sender: kvm-owner@vger.kernel.org List-ID: Luiz Capitulino writes: > On Thu, 16 Dec 2010 11:03:38 +0200 > Avi Kivity wrote: > >> On 12/15/2010 08:00 PM, Luiz Capitulino wrote: >> > > > >> > > > Looks like a GUI feature to me, >> > > >> > > Really? Can't see how you can build "NMI to all CPUs" from "NMI this >> > > CPU". Or am I misunderstanding you? >> > >> > I guess so. Avi referred to 'nmi button on many machines', I assumed he >> > meant a virtual machine GUI, am I wrong? >> >> I meant a real machine's GUI (it's a physical button you can press with >> your finger, if you have thin fingers). > > Ok, I didn't know that, but I had another idea: the command could accept > either a single cpu index or a list: > > > { "execute": "inject-nmi", "arguments": { "cpus": 2 } } > > { "execute": "inject-nmi", "arguments": { "cpus": [1, 2, 3, 4] } } > > This has the feature of injecting the nmi in just some cpus, although I'm > not sure this is going to be desired/useful. Use case for NMI-ing a subset of the CPUs? Heck, use case for anything else but "NMI all"? > If we agree on this we'll have to wait because the monitor doesn't currently > support "hybrid" arguments. Let's keep the schema simple.