Received: from eggs.gnu.org ([140.186.70.92]:49614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYfrW-0002RY-Kb for qemu-devel@nongnu.org; Mon, 20 Jun 2011 10:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYfrV-0007Ws-51 for qemu-devel@nongnu.org; Mon, 20 Jun 2011 10:54:02 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:46242) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QYfrU-0007WU-I8 for qemu-devel@nongnu.org; Mon, 20 Jun 2011 10:54:00 -0400 From: =?utf-8?Q?Llu=C3=ADs?= References: Date: Mon, 20 Jun 2011 16:51:32 +0200 In-Reply-To: (nilay@cs.wisc.edu's message of "Sun, 19 Jun 2011 12:28:23 -0500") Message-ID: <87d3i8a74b.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] struct TimerState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: nilay@cs.wisc.edu Cc: qemu-devel@nongnu.org Nilay writes: > I am trying to understand the structures that QEMU saves when do_savevm() > is invoked. Can anyone explain to me the fields that are part of the > TimerState structure in qemu-timer.c? If my meory does not fail me, its main task is to capture what is the time in the host whenever the VM is started and stopped. This is later used to adapt the VM time when using icount in adaptive mode (-icount=auto). I remember seeing it used somewhere else, but right now I cannot recall exactly what for. This reminds me that I've been navigating through all the time-related code in QEMU and, in order to make it more easy to follow, I've started separating the routines in qemu-timer into different files (e.g., qemu-htime and qemu-vtime for routines accessing time sources in the host and in the VM). I will send the patches as soon as I finish the rewrite. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth