summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2016-05-20 12:28:37 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-23 16:53:47 +0200
commit1453e6627d19a8d6d54480c6980f5cef5dfc6833 (patch)
tree506683d4f6b3b1bce3d564c3d4e9d010fac47bf5
parentf7e981f29548fe4af7812f5920304fe607e5bf0d (diff)
downloadqemu-1453e6627d19a8d6d54480c6980f5cef5dfc6833.tar.gz
qemu-1453e6627d19a8d6d54480c6980f5cef5dfc6833.tar.bz2
qemu-1453e6627d19a8d6d54480c6980f5cef5dfc6833.zip
cpus: call the core nmi injection function
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 <bsd@redhat.com> Message-Id: <1463761717-26558-4-git-send-email-bsd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--cpus.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/cpus.c b/cpus.c
index f8366c684e..e75895a458 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)