qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration


From: Blue Swirl
Subject: [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration
Date: Wed, 9 Sep 2009 20:33:03 +0300

On Wed, Sep 9, 2009 at 6:11 PM, Jan Kiszka<address@hidden> wrote:
> 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.).

What I meant in the earlier thread is that m48t59 port read for time
or date gets the data directly from host using  qemu_get_timedate().
PC RTC instead uses a timer: the timer callback updates the cmos_data
structure. It seems that you just replace the timer with a new one.
I'd remove the timer altogether and change the cmos_ioport_read to
call qemu_get_timedate().




reply via email to

[Prev in Thread] Current Thread [Next in Thread]