Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqOI9-0005RM-Vs for qemu-devel@nongnu.org; Mon, 28 Apr 2008 04:00:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqOI7-0005PT-VR for qemu-devel@nongnu.org; Mon, 28 Apr 2008 04:00:53 -0400 Received: from [199.232.76.173] (port=55222 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqOI7-0005PK-Nl for qemu-devel@nongnu.org; Mon, 28 Apr 2008 04:00:51 -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 1JqOI7-0003Hp-1J for qemu-devel@nongnu.org; Mon, 28 Apr 2008 04:00:51 -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 1JqOI6-0000YM-3M for qemu-devel@nongnu.org; Mon, 28 Apr 2008 04:00:50 -0400 Received: from localhost (karma.qumranet.com [172.16.16.240]) by il.qumranet.com (Postfix) with ESMTP id 038E22502FC for ; Mon, 28 Apr 2008 11:00:48 +0300 (IDT) Date: Mon, 28 Apr 2008 11:00:48 +0300 From: Dan Kenigsberg Subject: Re: [Qemu-devel] [Patch] [kinda-resend] persistent real-time-clock Message-ID: <20080428080047.GC6184@karma.qumranet.com> References: <20080427154501.GA20547@karma.qumranet.com> <4814B0A9.7090601@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4814B0A9.7090601@codemonkey.ws> 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 On Sun, Apr 27, 2008 at 11:58:17AM -0500, Anthony Liguori 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. >> > > I think a more general mechanism that stored nvram in a file would be > interesting. Something like like -nvram file.ram. This also allows a > guest to determine it's initial boot device and for that setting to > persist. > Sounds not dissimilar to migration-to-file of all cmos bits and pieces of all supported architectures, doesn't it? I hope this general mechanism does not block, in your opnion, the suggested specific solution. Dan.