Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqNGW-0004gu-6Q for qemu-devel@nongnu.org; Mon, 28 Apr 2008 02:55:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqNGS-0004gQ-O0 for qemu-devel@nongnu.org; Mon, 28 Apr 2008 02:55:07 -0400 Received: from [199.232.76.173] (port=38349 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqNGS-0004gN-Ki for qemu-devel@nongnu.org; Mon, 28 Apr 2008 02:55:04 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JqNGR-0003hb-Ht for qemu-devel@nongnu.org; Mon, 28 Apr 2008 02:55:04 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194] helo=il.qumranet.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqNGD-0007dk-E3 for qemu-devel@nongnu.org; Mon, 28 Apr 2008 02:54:49 -0400 Date: Mon, 28 Apr 2008 09:54:38 +0300 From: Dan Kenigsberg Subject: Re: [Qemu-devel] [Patch] [kinda-resend] persistent real-time-clock Message-ID: <20080428065438.GA6184@karma.qumranet.com> References: <20080427154501.GA20547@karma.qumranet.com> <4814AC4E.2080902@qumranet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4814AC4E.2080902@qumranet.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org On Sun, Apr 27, 2008 at 07:39:42PM +0300, Avi Kivity wrote: > Dan Kenigsberg wrote: >> Real PC lets its user set the real-time-clock and store it on CMOS, >> which advances the clock even when the PC is offline. >> >> These patches will allow doing the same with VM: >> - Before shutting a VM down, use the monitor's info timeoffset to see >> how much (in seconds) does the rtc differ from the host clock. >> - Store this offset somewhere. >> - Use it next time with -startdate now+offset. >> >> Please tell me what do you think of it. >> > > How about (additionally) modifying -startdate to accept an offset directly? > > qemu -startdate +0300 ... > > Useful for those Windows VMs which have localtime in cmos. I'm missing somthing: in what way is it different than the suggested qemu -startdate now+offset ? Only in allowing to specify the offset in hours/minutes?