Skip to content

Commit

Permalink
cpus: call the core nmi injection function
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
whitebrandy authored and bonzini committed May 23, 2016
1 parent f7e981f commit 1453e66
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cpus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1693,21 +1693,7 @@ void qmp_pmemsave(int64_t addr, int64_t size, const char *filename,

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)
Expand Down

0 comments on commit 1453e66

Please sign in to comment.