From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jkiui-0000nu-Fb for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:49:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jkiug-0000mi-Mb for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:49:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jkiug-0000mV-Is for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:49:14 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jkiug-0006cm-4U for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:49:14 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 8C4B3D6D968C for ; Sat, 12 Apr 2008 18:49:13 +0200 (CEST) Received: from [88.65.46.55] (helo=[192.168.1.198]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1Jkiuf-0000aa-00 for qemu-devel@nongnu.org; Sat, 12 Apr 2008 18:49:13 +0200 Message-ID: <4800E809.8080205@web.de> Date: Sat, 12 Apr 2008 18:49:13 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4800DF79.2030301@web.de> In-Reply-To: <4800DF79.2030301@web.de> Content-Type: multipart/mixed; boundary="------------080404070605050107040406" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH 2/3] x86: Raise inter-processor NMI and SMI Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------080404070605050107040406 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Jan Kiszka wrote: > [ This patch obsoletes > http://permalink.gmane.org/gmane.comp.emulators.qemu/22989. ] >=20 > Make the APIC deliver inter-processor NMI and SMI requests. NMI deliver= y > was successfully tested in the context of kgdb (Linux kernel debugger), > SMI is included for the sake of completeness. >=20 > Signed-off-by: Jan Kiszka >=20 Non-broken patch attached. Sorry. Jan --------------080404070605050107040406 Content-Type: text/x-patch; name="apic-raise-nmi-smi.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="apic-raise-nmi-smi.patch" --- hw/apic.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Index: b/hw/apic.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- a/hw/apic.c +++ b/hw/apic.c @@ -216,8 +216,14 @@ static void apic_bus_deliver(const uint3 break; =20 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; =20 case APIC_DM_INIT: /* normal INIT IPI sent to processors */ --------------080404070605050107040406--