From: Schiwed <schiwed@01019freenet.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Lets you set the target system time at startup
Date: Sun, 8 Jan 2006 14:57:14 +0100 [thread overview]
Message-ID: <200601081457.14817.schiwed@01019freenet.de> (raw)
[-- 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.
reply other threads:[~2006-01-08 14:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200601081457.14817.schiwed@01019freenet.de \
--to=schiwed@01019freenet.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).