From e2eb9d3e9192800e0526e88c186cecda4529d307 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 13 Apr 2008 16:08:23 +0000 Subject: [PATCH] x86: Raise inter-processor NMI and SMI (Jan Kiszka) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4206 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/apic.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/apic.c b/hw/apic.c index 25f6f53a96..a6964e0a65 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -216,8 +216,14 @@ static void apic_bus_deliver(const uint32_t *deliver_bitmask, break; case APIC_DM_SMI: + foreach_apic(apic_iter, deliver_bitmask, + cpu_interrupt(apic_iter->cpu_env, CPU_INTERRUPT_SMI) ); + return; + case APIC_DM_NMI: - break; + foreach_apic(apic_iter, deliver_bitmask, + cpu_interrupt(apic_iter->cpu_env, CPU_INTERRUPT_NMI) ); + return; case APIC_DM_INIT: /* normal INIT IPI sent to processors */