Received: from eggs.gnu.org ([2001:4830:134:3::10]:51060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnWTY-0003dC-7g for qemu-devel@nongnu.org; Fri, 23 Sep 2016 15:49:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnWTS-0004z0-Of for qemu-devel@nongnu.org; Fri, 23 Sep 2016 15:49:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnWTS-0004yH-Hd for qemu-devel@nongnu.org; Fri, 23 Sep 2016 15:49:30 -0400 Date: Fri, 23 Sep 2016 16:49:27 -0300 From: Eduardo Habkost Message-ID: <20160923194927.GB3877@thinpad.lan.raisama.net> References: <20160921202036.GA5885@thinpad.lan.raisama.net> <9dc16834-6b15-6f22-f169-47d7131ac2c5@mvista.com> <20160922184217.GC5885@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Default CPU for NMI injection (QMP and IPMI) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corey Minyard Cc: qemu-devel@nongnu.org, Alexey Kardashevskiy , Alexander Graf , Bandan Das On Thu, Sep 22, 2016 at 02:49:35PM -0500, Corey Minyard wrote: > On 09/22/2016 01:42 PM, Eduardo Habkost wrote: [...] > > In the case of the inject-nmi QMP command, I need to understand > > what "default CPU" is supposed to mean in the inject-nmi > > documentation. Maybe it can be changed to use the first CPU, too > > (that's probably the existing behavior because there's no way to > > change cur_mon->mon_cpu in a QMP monitor). > > > I looked through is a bit, and the only place I found it was used was > the x390 code. > > If we remove the CPU index from this, then the IPMI device can > keep the same interface. Well, the existing behavior is to use the first CPU, so I will just keep the existing behavior but remove the monitor_get_cpu_index() call from qmp_inject_nmi(). Then the IPMI code can stay the same. -- Eduardo