From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws6GA-0006tQ-Pa for qemu-devel@nongnu.org; Wed, 04 Jun 2014 04:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ws6Fv-0005qs-5J for qemu-devel@nongnu.org; Wed, 04 Jun 2014 04:09:22 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:55012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws6Fu-0005pF-8X for qemu-devel@nongnu.org; Wed, 04 Jun 2014 04:09:07 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jun 2014 18:08:59 +1000 From: Alexey Kardashevskiy Date: Wed, 4 Jun 2014 18:08:46 +1000 Message-Id: <1401869330-32449-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v3 0/4] cpus: Add generic NMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alex Bligh , Alexey Kardashevskiy , Markus Armbruster , Alexander Graf , Luiz Capitulino , qemu-ppc@nongnu.org, Stefan Hajnoczi , Cornelia Huck , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson 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: v3: * patches reorganized * comments from v2 addressed, more details are in individual commit logs 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 (4): cpus: Define NMI callback target-s390x: Migrate to new nmi() CPU callback target-i386: Migrate to new nmi() CPU callback target-ppc: Add support for new nmi() CPU callback cpus.c | 33 +++++++-------------------------- hmp-commands.hx | 6 ++---- include/qom/cpu.h | 1 + qapi-schema.json | 4 +--- qmp-commands.hx | 3 +-- target-i386/cpu.c | 16 ++++++++++++++++ target-ppc/cpu-qom.h | 1 + target-ppc/excp_helper.c | 8 ++++++++ target-ppc/translate_init.c | 17 +++++++++++++++++ target-s390x/cpu.c | 6 ++++++ 10 files changed, 60 insertions(+), 35 deletions(-) -- 2.0.0