qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration
@ 2009-09-09 15:11 Jan Kiszka
  2009-09-09 15:11 ` [Qemu-devel] [PATCH 4/5] Refactor RTC command line switches Jan Kiszka
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Jan Kiszka @ 2009-09-09 15:11 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Blue Swirl, Glauber Costa, Dor Laor, qemu-devel

The aim of this series is to allow using the emulated PC RTC (MC146818)
as a reliable time source for guests. This is particularly useful if the
host runs NTP or has otherwise access to an accurate clock while the
guest has not (no network, impossible to add an NTP implementation
etc.).

To achieve this, the command line switch -rtc is introduced. It takes
the option 'clock' to switch between the currently used base ('vm') and
the new QEMU_CLOCK_HOST ('host'). At this chance, -rtc is also used to
deprecate all the other RTC-related stand-alone switches.

First tests indicate that this approach works as expected and could
increase the usefulness of the virtual RTC enormously. However, there
might be pitfalls I've missed so far. Feedback would be welcome!

Find this series also at git://git.kiszka.org/qemu.git queues/clock

Jan Kiszka (5):
      Rename QEMU_TIMER_* to QEMU_CLOCK_*
      win32: Drop dead dyntick timer code
      Introduce QEMU_CLOCK_HOST
      Refactor RTC command line switches
      Enable host-clock-based RTC

 hw/mc146818rtc.c |   35 ++++-----
 qemu-options.hx  |   52 +++++++-----
 sysemu.h         |    2 +
 vl.c             |  234 ++++++++++++++++++++++++++++++++++++------------------
 4 files changed, 205 insertions(+), 118 deletions(-)

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-09-14 15:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09 15:11 [Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration Jan Kiszka
2009-09-09 15:11 ` [Qemu-devel] [PATCH 4/5] Refactor RTC command line switches Jan Kiszka
2009-09-09 15:11 ` [Qemu-devel] [PATCH 2/5] win32: Drop dead dyntick timer code Jan Kiszka
2009-09-09 15:11 ` [Qemu-devel] [PATCH 3/5] Introduce QEMU_CLOCK_HOST Jan Kiszka
2009-09-09 15:11 ` [Qemu-devel] [PATCH 5/5] Enable host-clock-based RTC Jan Kiszka
2009-09-09 15:11 ` [Qemu-devel] [PATCH 1/5] Rename QEMU_TIMER_* to QEMU_CLOCK_* Jan Kiszka
2009-09-09 15:40 ` [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration Anthony Liguori
2009-09-09 16:24   ` Jan Kiszka
2009-09-09 16:41     ` Jan Kiszka
2009-09-09 18:03       ` Markus Armbruster
2009-09-09 17:59     ` Anthony Liguori
2009-09-09 20:00       ` Jan Kiszka
2009-09-09 20:18         ` Anthony Liguori
2009-09-09 22:23       ` Jamie Lokier
2009-09-11  8:54         ` Jan Kiszka
2009-09-13 15:08           ` Dor Laor
2009-09-13 15:37             ` Jan Kiszka
2009-09-14 13:36               ` Anthony Liguori
2009-09-14 15:40                 ` Jan Kiszka
2009-09-09 17:59     ` Markus Armbruster
2009-09-10 10:41   ` Gerd Hoffmann
2009-09-09 17:33 ` Blue Swirl
2009-09-09 19:13   ` Jan Kiszka

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).