From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jq9uo-0008K4-BF for qemu-devel@nongnu.org; Sun, 27 Apr 2008 12:39:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jq9ul-0008Jd-UF for qemu-devel@nongnu.org; Sun, 27 Apr 2008 12:39:49 -0400 Received: from [199.232.76.173] (port=50930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jq9ul-0008Ja-Rm for qemu-devel@nongnu.org; Sun, 27 Apr 2008 12:39:47 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194] helo=il.qumranet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jq9ul-0000Nq-90 for qemu-devel@nongnu.org; Sun, 27 Apr 2008 12:39:47 -0400 Message-ID: <4814AC4E.2080902@qumranet.com> Date: Sun, 27 Apr 2008 19:39:42 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Patch] [kinda-resend] persistent real-time-clock References: <20080427154501.GA20547@karma.qumranet.com> In-Reply-To: <20080427154501.GA20547@karma.qumranet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dan Kenigsberg Cc: qemu-devel@nongnu.org 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. -- error compiling committee.c: too many arguments to function