From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0MBr-0000dJ-I0 for qemu-devel@nongnu.org; Fri, 29 Dec 2006 13:10:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0MBp-0000bm-PF for qemu-devel@nongnu.org; Fri, 29 Dec 2006 13:10:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0MBp-0000be-Kh for qemu-devel@nongnu.org; Fri, 29 Dec 2006 13:10:45 -0500 Received: from [65.74.133.4] (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 1H0MBp-0005Ll-6n for qemu-devel@nongnu.org; Fri, 29 Dec 2006 13:10:45 -0500 From: Paul Brook Subject: Re: [Qemu-devel] time inside qemu Date: Fri, 29 Dec 2006 18:10:41 +0000 References: <459540A8.8020209@uab.cat> <200612291743.05983.paul@codesourcery.com> <45955621.2030301@uab.cat> In-Reply-To: <45955621.2030301@uab.cat> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200612291810.41992.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: qemu-devel@nongnu.org Cc: =?iso-8859-1?q?M=E0rius_Mont=F3n?= On Friday 29 December 2006 17:53, M=E0rius Mont=F3n wrote: > Hi, > > As I understand, OSes running inside qemu "have" notion of time: (its > date and time works, time(1) command works, etc.). > My question is about how qemu manages time. I need to stop and start > again this "virtual-time". qemu doesn't maintain virtual time, it just uses the real host time. > I just tried with cpu_disable_ticks() and cpu_enable_ticks(). It seems > to work partially: at least now system date and time are out of sync.. I suspect you'll find that for anything other than very coarse user (ie. us= er=20 stop/continue) these are effectively useless. Any benchmark/performance measurements you make inside qemu are meaningless= =2E=20 qemu performance bears no relation whatsoever to the performance=20 characteristics of real hardware. Paul