From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Evb8y-0004ch-0f for qemu-devel@nongnu.org; Sun, 08 Jan 2006 09:03:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Evb8v-0004aX-FX for qemu-devel@nongnu.org; Sun, 08 Jan 2006 09:03:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Evb8u-0004Zl-Df for qemu-devel@nongnu.org; Sun, 08 Jan 2006 09:03:32 -0500 Received: from [194.97.50.132] (helo=mout1.freenet.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EvbB0-0000Gt-Vz for qemu-devel@nongnu.org; Sun, 08 Jan 2006 09:05:43 -0500 Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout1.freenet.de with esmtpa (Exim 4.61) (envelope-from ) id 1Evb6Y-0001c6-OI for qemu-devel@nongnu.org; Sun, 08 Jan 2006 15:01:06 +0100 Received: from dialin-145-254-044-170.pools.arcor-ip.net ([145.254.44.170] helo=wotan.local.net) by mx0.freenet.de with esmtpsa (ID schiwed@01019freenet.de) (SSLv3:RC4-MD5:128) (Exim 4.61 #8) id 1Evb6W-00049j-Aq for qemu-devel@nongnu.org; Sun, 08 Jan 2006 15:01:06 +0100 From: Schiwed Date: Sun, 8 Jan 2006 14:57:14 +0100 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_6oRwDlvXxt30ruY" Message-Id: <200601081457.14817.schiwed@01019freenet.de> Subject: [Qemu-devel] [PATCH] Lets you set the target system time at startup 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 --Boundary-00=_6oRwDlvXxt30ruY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello everybody, I wrote a little patch, that lets you set the initial target system time at startup of qemu. I thought it might be interesting for others, too. This patch gives you an additional command line option '-initialtime n' with n being the initial target system time in seconds since the unix epoch. The formm of the argument as seconds instead of a date and time in the form YYYY.MM.DD-HH:SS is probably improvable, but it was much easier to implement :-))) and on unix machines, at least, you have the tools at hand to easily convert any date and time to seconds, so I thohght I'd just leave it in seconds for the time being. The patch also adds a section to the help text (the one you see with qemu -h) and to the man-page. Oh, the patch is against version 0.8.0 but should be easily adjustable to other versions, too. Hope yall find it useful and thanks for the great software, Volker --Boundary-00=_6oRwDlvXxt30ruY Content-Type: application/x-gzip; name="qemu-initialtime.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qemu-initialtime.patch.gz" H4sICBjBqUMAA3FlbXUtaW5pdGlhbHRpbWUucGF0Y2gArVdtc5tGEP5cfsWOMmmsIGSQLMtC4xnn bRp/UJ1GzrSZqkMRnMSN4U7lQIrbyX/v7oEUENjOh9x4QrK3++zbs3txyFcrsNIc/mFJbtn9i759 Gu1ON0E/qIgsLnjG/TjjCfM2fhZEeyXDsqwW258Gtj2ynIHlTGAwdEeOOxr27f0B03Zs2zBN87t8 HMAGDjgj13bcYRPs6gosZzTujcGkjzOEqysD6HCRAZ8aUPzr9CUolkEWMXgzu5lD6GcMXp4aFl2S 75OfM96dGqY2XcFJGZan7lXGEo9U4PIS7G6hUmIKCbliKah8s4k5CzVUj2QQSZVBYa2l6OxgeeyQ xYrVcAmgCQy+gjKuKjLUoeESWoJHT2VdMLk0C7w8C7oGHMwSNFsnlcDgEFjYQhb6a995vI+FzjFV CumPYcoRFhHlzB2N3aHTSpTB+bB3DiZ9nLEmyrzkRMqwpLqWQSyDO8gk4HcvOyGVkK38PEZOKbpd KMv5dPtmoWxD63T7cBvhldxkXApSEoyF1DcJkb9FXJmmLMgK4nEBs7n1FnkoUwN+5yKUO9U3zP71 B+gsVq8X1VyRuIEUoVqsPnbgjJT+gGvqfadNq2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A4/kdCNeS34MPwAOeHnhqoycfw6jlqY1+2FMbHf025SDYQ0/t pHhqJ+X4sC8ZS0XxkvqJp/i/+MtEVbrkUrWIS2ZgU0rhwy9v3bBZ8vp97YVtv4oY/T9tavwPA61Y tugOAAA= --Boundary-00=_6oRwDlvXxt30ruY Content-Type: text/plain; charset="us-ascii"; name="qemu-initialtime.README" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu-initialtime.README" Patch adding command-line option '-initialtime' to qemu to set the initial date and time of the target systems real time clock. Written, 21.12.2005, Volker Wedemeier To apply the patch, copy patchfile to folder above qemu-0.8.0, then do > gunzip qemu-initialtime.patch.gz then > patch -p0 < qemu-initialtime.patch Configure, compile and install as usual. --Boundary-00=_6oRwDlvXxt30ruY--