[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration |
Date: |
Wed, 09 Sep 2009 17:11:12 +0200 |
User-agent: |
StGIT/0.14.3 |
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(-)
- [Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration,
Jan Kiszka <=
- [Qemu-devel] [PATCH 3/5] Introduce QEMU_CLOCK_HOST, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 1/5] Rename QEMU_TIMER_* to QEMU_CLOCK_*, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 4/5] Refactor RTC command line switches, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 5/5] Enable host-clock-based RTC, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 2/5] win32: Drop dead dyntick timer code, Jan Kiszka, 2009/09/09
- [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration, Anthony Liguori, 2009/09/09