qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 2/3] x86: Raise inter-processor NMI and SMI


From: Jan Kiszka
Subject: [Qemu-devel] Re: [PATCH 2/3] x86: Raise inter-processor NMI and SMI
Date: Sat, 12 Apr 2008 18:49:13 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Jan Kiszka wrote:
[ This patch obsoletes
 http://permalink.gmane.org/gmane.comp.emulators.qemu/22989. ]

Make the APIC deliver inter-processor NMI and SMI requests. NMI delivery
was successfully tested in the context of kgdb (Linux kernel debugger),
SMI is included for the sake of completeness.

Signed-off-by: Jan Kiszka <address@hidden>


Non-broken patch attached. Sorry.

Jan
---
 hw/apic.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Index: b/hw/apic.c
===================================================================
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -216,8 +216,14 @@ static void apic_bus_deliver(const uint3
             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 */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]