Enable host-clock-based RTC
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 15 Sep 2009 11:36:04 +0000 (13:36 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:45 +0000 (09:32 -0500)
commit1255fc32abcd4ee002ba235bf033242016abeff8
tree108600320ec5820c8f13e8a1e5c24954132eb293
parent95e02e5db013d2812dda60411427d78c0d812643
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>
hw/mc146818rtc.c
qemu-config.c
qemu-options.hx
sysemu.h
vl.c