[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/4] cpus: call the core nmi injection function
From: |
Bandan Das |
Subject: |
[Qemu-devel] [PATCH 4/4] cpus: call the core nmi injection function |
Date: |
Thu, 19 May 2016 18:15:16 -0400 |
Now that the common functions are in place, we can call it
instead of duplicating code.
Signed-off-by: Bandan Das <address@hidden>
---
cpus.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/cpus.c b/cpus.c
index eb34b4f..ead4e3f 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
+ inject_nmi(errp);
}
void dump_drift_info(FILE *f, fprintf_function cpu_fprintf)
--
2.5.5