]> git.proxmox.com Git - qemu.git/commit
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)
commit6875204c782e7c9aa5c28f96b2583fd31c50468f
tree108600320ec5820c8f13e8a1e5c24954132eb293
parent1ed2fc1fa35fadc0d6f5d9b55b9f84ccaa87a036
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