From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkiLM-0007nc-6R for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:12:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkiLL-0007m8-2B for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:12:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkiLK-0007m1-UV for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:12:43 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkiLK-0006hS-Mc for qemu-devel@nongnu.org; Sat, 12 Apr 2008 12:12:42 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id E8E72DB13E9F for ; Sat, 12 Apr 2008 18:12:41 +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 1JkiLJ-0005bm-00 for qemu-devel@nongnu.org; Sat, 12 Apr 2008 18:12:41 +0200 Message-ID: <4800DF79.2030301@web.de> Date: Sat, 12 Apr 2008 18:12:41 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig657A05768ACBE73057E7F138" Sender: jan.kiszka@web.de Subject: [Qemu-devel] [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 an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig657A05768ACBE73057E7F138 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable [ 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 --- 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 */ --------------enig657A05768ACBE73057E7F138 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIAN95niDOoMHTA+kRAiUXAJ9d96aMioIDJ6VwTbGAZKC9yWrDcQCeNI6s XUt1Kz4XWB4C7Z1+IS1zr88= =CWF4 -----END PGP SIGNATURE----- --------------enig657A05768ACBE73057E7F138--