From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KPFRF-0003A8-Oh for qemu-devel@nongnu.org; Sat, 02 Aug 2008 07:38:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KPFRE-00038J-6X for qemu-devel@nongnu.org; Sat, 02 Aug 2008 07:38:21 -0400 Received: from [199.232.76.173] (port=42386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPFRE-000386-3O for qemu-devel@nongnu.org; Sat, 02 Aug 2008 07:38:20 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:63253) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KPFRD-0002PR-ET for qemu-devel@nongnu.org; Sat, 02 Aug 2008 07:38:19 -0400 Date: Sat, 2 Aug 2008 12:38:12 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [RFC][PATCH] Add HPET emulation to qemu (v2) Message-ID: <20080802113812.GD4535@implementation> References: <1217675114-17670-1-git-send-email-eak@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1217675114-17670-1-git-send-email-eak@us.ibm.com> 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: Beth Kon , Alexander Graf , kvm@vger.kernel.org Beth Kon, le Sat 02 Aug 2008 06:05:14 -0500, a écrit : > I was trying to reproduce the wakeup every 10ms that > Samuel Thibault mentioned, thinking the HPET would improve it. > But for an idle guest in both cases (with and without HPET), the > number of wakeups per second was relatively low (28). I was referring to vl.c's timeout = 10; which makes the select call use a timeout of 10ms. That said, "/* If all cpus are halted then wait until the next IRQ */", so maybe that's why you get slower wakeups per second. I'm still surprised because of the call to qemu_mod_timer in pit_irq_timer_update which should setup at least a 100Hz timer with linux guests (when they don't have HPET available). Samuel