From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsC95-0006bd-MC for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:26:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsC8s-0001Se-JB for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:26:27 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:56332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsC8q-0001R8-N2 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:26:14 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Jun 2014 00:26:10 +1000 From: Alexey Kardashevskiy Date: Thu, 5 Jun 2014 00:25:57 +1000 Message-Id: <1401891961-17292-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v4 0/4] cpus: Add generic "nmi" monitor command support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Peter Maydell , qemu-ppc@nongnu.org, Alexander Graf , Paolo Bonzini This adds an "nmi" monitor command handler per CPUs. x86, s390 and ppc CPUS are supported. Please comment. Thanks. Changes: v4: * now it is not nmi() but nmi_monitor_handler() to avoid confusion 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 callback for QEMU "nmi" command target-s390x: Migrate to new nmi_monitor_handler() CPU callback target-i386: Migrate to new nmi_monitor_handler() CPU callback target-ppc: Add support for new nmi_monitor_handler() 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