Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwONR-0006lW-AW for qemu-devel@nongnu.org; Tue, 21 Apr 2009 18:23:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwONM-0006Ze-7q for qemu-devel@nongnu.org; Tue, 21 Apr 2009 18:23:40 -0400 Received: from [199.232.76.173] (port=33770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwONM-0006ZQ-2S for qemu-devel@nongnu.org; Tue, 21 Apr 2009 18:23:36 -0400 Received: from mail.gmx.net ([213.165.64.20]:39255) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LwONL-0002YJ-EU for qemu-devel@nongnu.org; Tue, 21 Apr 2009 18:23:35 -0400 Message-ID: <2FA26227A55D4464A9CB13D63A0CDFAF@FSCPC> From: "Sebastian Herbszt" References: <49E3D91E.40208@us.ibm.com> <01bd01c9bcd3$3aaedef0$b00c9cd0$@com><49E49BAD.70309@us.ibm.com> <01c201c9bd11$2a48d640$7eda82c0$@com><49E4B77E.8000601@us.ibm.com> <49ECB992.8040108@us.ibm.com> In-Reply-To: <49ECB992.8040108@us.ibm.com> Date: Wed, 22 Apr 2009 00:22:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Fix non-ACPI Timer Interrupt Routing List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, eak@us.ibm.com Cc: bochs-developers@lists.sourceforge.net, eswierk@aristanetworks.com Beth Kon wrote: > Sebastian Herbszt wrote: >> Beth Kon wrote: >>> This is part of a bigger change for QEMU, incorporating irq0->inti2 >>> override for ACPI, and non-ACPI, driven by addition of the HPET. It >>> required BIOS changes as well as QEMU changes to route irq0 to inti2 >>> of the IOAPIC. This patch alone is not complete. I have tested the >>> complete solution in QEMU, thus the guards. >> >> I just tested qemu r7185 with bochs bios (without your patch) and used >> a Linux > Do you mean you used a bochs bios that doesn't include #ifdef BX_QEMU > portions? I was indeed testing pure bochs bios. > Then it wouldn't work because QEMU overrides irq0->inti2 in > its ioapic code and without the matching bios that notifies the guest of > the override, boots would likely fail. This change was put in because of > the needs of the HPET, but now it is standard procedure for QEMU. With > or without HPET, QEMU will override irq0->inti2. This was the missing piece. I just looked at the change [1] and now it explains why my testing with pure bochs bios failed. Thanks. It's also the reason why this change is qemu only. ioapic.cc from bochs doesn't have such override hard-coded. > If you mean that you used a QEMU Bochs (with ifdef BX_QEMU included), > please let me know what kind of errors you are seeing. I did just retest with bios.bin from qemu r7055 hpet enabled, no guest kernel parameters hpet enabled, guest kernel with acpi=off <- hang hpet disabled, no guest kernel parameters hpet disabled, guest kernel with acpi=off <- hang and those two hangs with acpi=off are fixed in r7169. [1] http://svn.savannah.gnu.org/viewvc/trunk/hw/apic.c?root=qemu&r1=5890&r2=6081 - Sebastian