qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Lets you set the target system time at startup
@ 2006-01-08 13:57 Schiwed
  0 siblings, 0 replies; only message in thread
From: Schiwed @ 2006-01-08 13:57 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 922 bytes --]

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

[-- Attachment #2: qemu-initialtime.patch.gz --]
[-- Type: application/x-gzip, Size: 1373 bytes --]

[-- Attachment #3: qemu-initialtime.README --]
[-- Type: text/plain, Size: 360 bytes --]

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-08 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-08 13:57 [Qemu-devel] [PATCH] Lets you set the target system time at startup Schiwed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).