From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3nIP-0004qZ-Jq for qemu-devel@nongnu.org; Fri, 20 May 2016 12:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3nII-0001yN-Et for qemu-devel@nongnu.org; Fri, 20 May 2016 12:29:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3nII-0001y9-8o for qemu-devel@nongnu.org; Fri, 20 May 2016 12:28:58 -0400 From: Bandan Das Date: Fri, 20 May 2016 12:28:37 -0400 Message-Id: <1463761717-26558-4-git-send-email-bsd@redhat.com> In-Reply-To: <1463761717-26558-1-git-send-email-bsd@redhat.com> References: <1463761717-26558-1-git-send-email-bsd@redhat.com> Subject: [Qemu-devel] [PATCH v2 3/3] cpus: call the core nmi injection function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aik@ozlabs.ru We can call the common function here directly since x86 specific actions will be taken care of by the arch specific nmi handler Signed-off-by: Bandan Das --- cpus.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cpus.c b/cpus.c index eb34b4f..481f78a 100644 --- a/cpus.c +++ b/cpus.c @@ -1693,21 +1693,7 @@ exit: void qmp_inject_nmi(Error **errp) { -#if defined(TARGET_I386) - CPUState *cs; - - CPU_FOREACH(cs) { - X86CPU *cpu = X86_CPU(cs); - - if (!cpu->apic_state) { - cpu_interrupt(cs, CPU_INTERRUPT_NMI); - } else { - apic_deliver_nmi(cpu->apic_state); - } - } -#else nmi_monitor_handle(monitor_get_cpu_index(), errp); -#endif } void dump_drift_info(FILE *f, fprintf_function cpu_fprintf) -- 2.5.5