From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSzwt-00007A-1O for qemu-devel@nongnu.org; Wed, 26 Mar 2014 22:21:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSzwi-0008Ra-Jl for qemu-devel@nongnu.org; Wed, 26 Mar 2014 22:21:42 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:39312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSzwh-0008QN-RO for qemu-devel@nongnu.org; Wed, 26 Mar 2014 22:21:32 -0400 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Mar 2014 12:21:27 +1000 From: Alexey Kardashevskiy Date: Thu, 27 Mar 2014 13:21:18 +1100 Message-Id: <1395886880-11021-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH 0/2] nmi: add interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Paolo Bonzini , qemu-ppc@nongnu.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= This adds machine-specific NMI handlers support. This QOM approach was copied from FWPathProvider. Few questions so far. Should deliver_nmi() accept a CPU? A comment in hmp-commands.hx says "Inject an NMI (x86), RESTART (s390x) on the given CPU" but in fact qmp_inject_nmi() delivers NMI to every x86 CPU while it delivers only to the current s390 CPU. Please comment. Thanks! Alexey Kardashevskiy (2): spapr: Add NMI interface spapr: Define NMI interface cpus.c | 7 ++++++- hmp-commands.hx | 4 +--- hw/core/Makefile.objs | 1 + hw/core/nmi.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/spapr.c | 26 ++++++++++++++++++++++++++ include/hw/nmi.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+), 4 deletions(-) create mode 100644 hw/core/nmi.c create mode 100644 include/hw/nmi.h -- 1.8.4.rc4