From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/3] x86: Raise inter-processor NMI and SMI
Date: Sat, 12 Apr 2008 18:49:13 +0200 [thread overview]
Message-ID: <4800E809.8080205@web.de> (raw)
In-Reply-To: <4800DF79.2030301@web.de>
[-- 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 */
prev parent reply other threads:[~2008-04-12 16:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4800E809.8080205@web.de \
--to=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.