Received: from eggs.gnu.org ([2001:4830:134:3::10]:36786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmo0a-0001rh-Hq for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:20:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmo0V-00057g-H1 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:20:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmo0V-00057S-AS for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:20:39 -0400 Date: Wed, 21 Sep 2016 17:20:36 -0300 From: Eduardo Habkost Message-ID: <20160921202036.GA5885@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Default CPU for NMI injection (QMP and IPMI) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Corey Minyard , Alexey Kardashevskiy , Alexander Graf , Bandan Das Hi, I was looking at the monitor code handling the "current CPU", and noticed that qmp_inject_nmi() looks suspicious: it is a QMP command, but uses monitor_get_cpu_index(). In addition to the "inject-nmi" QMP command, qmp_inject_nmi() is used at: * hmp_inject_nmi() * ipmi_do_hw_op() (IPMI_SEND_NMI operation) This confused me, so I would like to know: 1) What exactly "default CPU" is supposed to mean in the "inject-nmi" QMP command documentation? 2) To which CPU(s) are NMIs supposed to be sent when triggered by IPMI messages? I don't know how to test the IPMI code, but it looks like it will crash if QEMU runs without any monitor. -- Eduardo