From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYktI-000171-Hr for qemu-devel@nongnu.org; Wed, 26 Apr 2006 10:21:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYktG-00016S-4U for qemu-devel@nongnu.org; Wed, 26 Apr 2006 10:21:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYktF-00016P-UZ for qemu-devel@nongnu.org; Wed, 26 Apr 2006 10:21:14 -0400 Received: from [65.74.133.6] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYkvx-0007T3-BT for qemu-devel@nongnu.org; Wed, 26 Apr 2006 10:24:01 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] Timer/clock for Linux Date: Wed, 26 Apr 2006 15:21:07 +0100 References: <001501c65dd6$484d7c60$0464a8c0@athlon> <200604252249.58711.paul@codesourcery.com> <20060426130156.GA19293@mail.shareable.org> In-Reply-To: <20060426130156.GA19293@mail.shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604261521.09177.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: qemu-devel@nongnu.org On Wednesday 26 April 2006 14:01, Jamie Lokier wrote: > Paul Brook wrote: > > One solution (which is also desirable for other reasons) is to > > implement some form of guest cycle counting based on the > > instructions actually executed. Then use that as the high-precision > > timesource, and use some for of adaptive method to keep host and > > guest clocks in sync. > > That's what I meant, expressed more clearly, except that I meant to > count guest time based on the real time spent executing guest code, > rather than counting individual instructions. Thanks! How do you propose doing that? It implies you have some way of interrupting the guest after it has executed a small amount of guest code, where "small" is less than the resolution+latency of host timer interrupts. Paul