qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bartosz Fabianowski <bartosz@fabianowski.de>
To: kyle@silverbeach.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Changing RTC from UTC to local time
Date: Mon, 31 May 2004 14:11:18 +0200	[thread overview]
Message-ID: <40BB20E6.6010307@fabianowski.de> (raw)
In-Reply-To: <200405301852.25158.kyle@silverbeach.net>

> So, you should probably _always_ have the emulated OS keep away from 
> the RTC.  The host OS will provide the correct time as the fake RTC 
> value.

My point exactly. Your host operating system is most likely one you use
quite a lot so chances are you will have set it up correctly to take
care of DST adjustments. When installing a slave OS that requires a
local RTC (Windows), you can just tell it the RTC is local and also tell
it to keep away from the RTC. When the host adjusts for DST, the slave
will automatically follow - theoretically, this should work even if it
occurs while QEMU is running. Though I haven't tried this yet.

And as a further safeguard, as I pointed out earlier, QEMU will always
reset the RTC if the slave OS starts tinkering with it. So even if you
forget to tell your slave OS to stop setting the RTC, no harm is done.

> Actually, while installing SuSE 9.1 yesterday, I noted that it states
> that the clock should be set to UTC unless you are dual booting.

I have never installed Linux on a machine myself so I didn't know what
Linux recommends. From your post and my own experience I conclude once
again that both Linux and *BSD can deal with a local time RTC while
Windows actually requires one. So if your RTC is running in local time,
all of those OSes will work. However, when your RTC is UTC, only Linux
and *BSD will work correctly. Windows will give you the wrong time. This
is why I believe we should have:

a) a choice between UTC and local time and
b) a safe default that makes all OSes work - which is local time

I guess it breaks down to this: If you are tinkering with Linux or *BSD
inside QEMU, you want your RTC to be UTC, as that is technically the
better way of doing it and it works nicely. If you are installing
Windows however, you want local time. Judging from the current posts on
the mailing list, the number of people who install Windows for now seems
to be smaller than that of people who install Linux or *BSD. But I could
well imagine that once QEMU matures and the word gets out, people will
start using it as a VMWare replacement for when they need that lonely
Windows application and Wine just won't do. Which happens to be the
situation I am in. So in anticipation of such a use - a use by newbies -
I believe a safe default is very important.

Thus, again, I believe my patch should be committed. But that, after
all, is Fabrice's choice.

- Bartosz

      reply	other threads:[~2004-05-31 12:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-29 14:39 [Qemu-devel] Changing RTC from UTC to local time Bartosz Fabianowski
2004-05-29 17:23 ` Kyle Hayes
2004-05-29 18:50   ` Bartosz Fabianowski
2004-05-29 23:13     ` Tim
2004-05-29 23:23       ` Bartosz Fabianowski
2004-05-30  4:52         ` John R. Hogerhuis
2004-05-30 19:32           ` Bartosz Fabianowski
2004-05-30 19:42             ` Kyle Hayes
2004-05-31 13:53             ` Pavel Janík
2004-05-31 14:20               ` Bartosz Fabianowski
2004-05-31 14:51               ` Fabrice Bellard
2004-05-31 14:51                 ` Bartosz Fabianowski
2004-05-31 15:12                 ` Derek Fawcus
2004-05-31 16:43                   ` Tim
2004-05-31 16:27                 ` Pavel Janík
2004-05-31 17:09                 ` Kyle Hayes
2004-05-30 21:59     ` Flavien
2004-05-31  0:29       ` Bartosz Fabianowski
2004-05-31  1:52         ` Kyle Hayes
2004-05-31 12:11           ` Bartosz Fabianowski [this message]

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=40BB20E6.6010307@fabianowski.de \
    --to=bartosz@fabianowski.de \
    --cc=kyle@silverbeach.net \
    --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).