* [Qemu-devel] [PATCH 2/3] x86: Raise inter-processor NMI and SMI
@ 2008-04-12 16:12 Jan Kiszka
2008-04-12 16:49 ` [Qemu-devel] " Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-04-12 16:12 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
[ 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 <jan.kiszka@web.de>
---
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 */
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH 2/3] x86: Raise inter-processor NMI and SMI
2008-04-12 16:12 [Qemu-devel] [PATCH 2/3] x86: Raise inter-processor NMI and SMI Jan Kiszka
@ 2008-04-12 16:49 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2008-04-12 16:49 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
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 <jan.kiszka@web.de>
>
Non-broken patch attached. Sorry.
Jan
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: apic-raise-nmi-smi.patch --]
[-- Type: text/x-patch; name="apic-raise-nmi-smi.patch", Size: 763 bytes --]
---
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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-12 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 16:12 [Qemu-devel] [PATCH 2/3] x86: Raise inter-processor NMI and SMI Jan Kiszka
2008-04-12 16:49 ` [Qemu-devel] " Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).