From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVajA-0004FC-Vw for qemu-devel@nongnu.org; Fri, 06 Feb 2009 19:07:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVaj8-0004CU-PD for qemu-devel@nongnu.org; Fri, 06 Feb 2009 19:07:19 -0500 Received: from [199.232.76.173] (port=58951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVaj8-0004CP-NM for qemu-devel@nongnu.org; Fri, 06 Feb 2009 19:07:18 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:51717) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVaj8-0000R8-22 for qemu-devel@nongnu.org; Fri, 06 Feb 2009 19:07:18 -0500 Message-ID: <498CD0AF.9040906@web.de> Date: Sat, 07 Feb 2009 01:07:11 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <498CC81B.2070407@web.de> <498CCCEC.4050205@codemonkey.ws> In-Reply-To: <498CCCEC.4050205@codemonkey.ws> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD6430ED2BA21A829B0778A6B" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [RFC][PATCH] disable special ioapic inti0 routing 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 Cc: Anthony Liguori , Beth Kon , Avi Kivity This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD6430ED2BA21A829B0778A6B Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Anthony Liguori wrote: > Jan Kiszka wrote: >> This patch comes from the kvm tree and fixes the timer IRQ routing for= >> me which is broken from the POV of certain Linux guest kernels. As I'm= >> not up-to-date with the development around that problematic hunk, I'm >> leaving it to someone more deeply involved to sign this off. But pleas= e >> commit some fix. >> =20 >=20 > Are you using an old bios by chance? The reason this fixes KVM has > nothing to do with QEMU FWIW so if this fixes something for you, it's > just a coincidence. My first thought as well, but the binary bios from latest svn made no difference. Jan >=20 > Regards, >=20 > Anthony Liguroi >=20 >> Thanks, >> Jan >> >> -------> >> >> From: Avi Kivity >> >> we don't support it yet (need bios support, and modifications to kerne= l >> irq routing). >> >> --- >> qemu/hw/apic.c | 2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c >> index df80444..f9ef995 100644 >> --- a/qemu/hw/apic.c >> +++ b/qemu/hw/apic.c >> @@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector, >> int level) >> { >> IOAPICState *s =3D opaque; >> =20 >> +#if 0 >> /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps >> * to GSI 2. GSI maps to ioapic 1-1. This is not >> * the cleanest way of doing it but it should work. */ >> =20 >> if (vector =3D=3D 0) >> vector =3D 2; >> +#endif >> =20 >> if (vector >=3D 0 && vector < IOAPIC_NUM_PINS) { >> uint32_t mask =3D 1 << vector; >> >> >> >> =20 >=20 >=20 >=20 >=20 --------------enigD6430ED2BA21A829B0778A6B 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.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkmM0LUACgkQniDOoMHTA+k0rQCggfQfDUsDFpFu3iG5IWyY2/EK MwoAnjc7z9vdNFBpb4/lS8lt6RBMP3XJ =hVEt -----END PGP SIGNATURE----- --------------enigD6430ED2BA21A829B0778A6B--