Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcoL6-0002sB-MV for qemu-devel@nongnu.org; Tue, 02 Oct 2007 16:27:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcoL4-0002pI-IQ for qemu-devel@nongnu.org; Tue, 02 Oct 2007 16:27:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcoL4-0002ou-B0 for qemu-devel@nongnu.org; Tue, 02 Oct 2007 16:27:30 -0400 Received: from il.qumranet.com ([82.166.9.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IcoL3-0000o0-VV for qemu-devel@nongnu.org; Tue, 02 Oct 2007 16:27:30 -0400 Message-ID: <4702A99B.7020008@qumranet.com> Date: Tue, 02 Oct 2007 22:27:07 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU/MIPS & dyntick kernel References: <20071002200644.GA19140@hall.aurel32.net> In-Reply-To: <20071002200644.GA19140@hall.aurel32.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: linux-mips@linux-mips.org Aurelien Jarno wrote: > Hi, > > As announced by Ralf Baechle, dyntick is now available on MIPS. I gave a > try on QEMU/MIPS, and unfortunately it doesn't work correctly. > > In some cases the kernel schedules an event very near in the future, > which means the timer is scheduled a few cycles only from its current > value. Unfortunately under QEMU, the timer runs too fast compared to the > speed at which instructions are execution. Sounds like a kernel bug. Can't there conceivably exist real hardware (or a real timeout) that exhibits the same timing? Especially today with variable clock frequencies, I don't see how the kernel can rely on exact timing. -- Any sufficiently difficult bug is indistinguishable from a feature.