mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
1ed2fc1fa3
commit
6875204c78
5 changed files with 49 additions and 25 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue