From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTWGe-0003xP-Qa for qemu-devel@nongnu.org; Fri, 28 Mar 2014 08:52:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTWGV-0000Nj-8X for qemu-devel@nongnu.org; Fri, 28 Mar 2014 08:52:16 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:56011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTWGU-0000N2-Hi for qemu-devel@nongnu.org; Fri, 28 Mar 2014 08:52:07 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Mar 2014 22:52:00 +1000 From: Alexey Kardashevskiy Date: Fri, 28 Mar 2014 23:51:47 +1100 Message-Id: <1396011112-23559-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v2 0/5] 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, Alexander Graf , Thomas Huth This adds an NMI handler per CPUs. x86, s390 and ppc CPUS are supported. The change to existing behaviour is that x86 only delivers NMI to the current monitored CPU now, not to every CPU. Please comment. Thanks. Changes: v2: * moved from machine interface to CPUClass callback * s390 and x86 moved to target-s390/target-i386 * x86 handler delivers to the current CPU only now Alexey Kardashevskiy (5): cpu: Add NMI callback target-i386: Implement nmi() callback target-s390: Implement nmi() callback target-ppc: Implement nmi() callback cpus: Enable nmi() callback use cpus.c | 33 +++++++-------------------------- hmp-commands.hx | 4 +--- include/qom/cpu.h | 1 + target-i386/cpu.c | 14 ++++++++++++++ target-ppc/cpu-qom.h | 1 + target-ppc/excp_helper.c | 2 +- target-ppc/translate_init.c | 18 ++++++++++++++++++ target-s390x/cpu.c | 6 ++++++ 8 files changed, 49 insertions(+), 30 deletions(-) -- 1.8.4.rc4