diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-09-15 13:36:04 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:45 -0500 |
commit | 6875204c782e7c9aa5c28f96b2583fd31c50468f (patch) | |
tree | 108600320ec5820c8f13e8a1e5c24954132eb293 /qemu-config.c | |
parent | 1ed2fc1fa35fadc0d6f5d9b55b9f84ccaa87a036 (diff) | |
download | qemu-6875204c782e7c9aa5c28f96b2583fd31c50468f.zip qemu-6875204c782e7c9aa5c28f96b2583fd31c50468f.tar.gz qemu-6875204c782e7c9aa5c28f96b2583fd31c50468f.tar.bz2 |
Enable host-clock-based RTC
Switch RTC emulations to the new host_clock instead of vm_clock by
default. This has the advantage that the emulated RTC will follow
automatically the host time while it might be tuned via NTP. vm_clock
can still be selected by passing '-rtc clock=vm' on the command line.
Note that some RTC emulations (at least M48T59) already use the host
time unconditionally while others (namely MC146818) do not. This patch
introduces the required infrastructure for selecting the base clock but
only converts MC146818 for now.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 3dce91d..785b146 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -158,6 +158,9 @@ QemuOptsList qemu_rtc_opts = { { .name = "base", .type = QEMU_OPT_STRING, + },{ + .name = "clock", + .type = QEMU_OPT_STRING, #ifdef TARGET_I386 },{ .name = "driftfix", |