Re: [Qemu-devel] [PATCH v4 2/7] RTC: Update the RTC clock only when reading it

2012-03-21 Thread Zhang, Yang Z
l] [PATCH v4 2/7] RTC: Update the RTC clock only when > reading it > > On Mon, 19 Mar 2012, Zhang, Yang Z wrote: > > There has no need to use two periodic timer to update RTC time. In this > > patch, > we only update it when guest reading it. > > So the basic ide

Re: [Qemu-devel] [PATCH v4 2/7] RTC: Update the RTC clock only when reading it

2012-03-20 Thread Stefano Stabellini
On Mon, 19 Mar 2012, Zhang, Yang Z wrote: > There has no need to use two periodic timer to update RTC time. In this > patch, we only update it when guest reading it. So the basic idea here is that we don't need to two periodic timers because we are going to calculate the RTC guest time from QEMU'

[Qemu-devel] [PATCH v4 2/7] RTC: Update the RTC clock only when reading it

2012-03-19 Thread Zhang, Yang Z
There has no need to use two periodic timer to update RTC time. In this patch, we only update it when guest reading it. Signed-off-by: Yang Zhang --- hw/mc146818rtc.c | 207 +- 1 files changed, 66 insertions(+), 141 deletions(-) diff --git a