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

2012-05-17 Thread Paolo Bonzini
Note: I haven't tested this series yet. Thanks for finding the problem! Il 17/05/2012 04:28, Zhang, Yang Z ha scritto: > Use offset instead of timer to calculate guest rtc. Guest rtc is calculated > by (base_rtc + guest_time_now - guest_time_last_update_rtc + offset). > Base_rtc means the rtc va

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

2012-05-16 Thread Zhang, Yang Z
Use offset instead of timer to calculate guest rtc. Guest rtc is calculated by (base_rtc + guest_time_now - guest_time_last_update_rtc + offset). Base_rtc means the rtc value of last update. Guest_time_now means the guest time that access happens. Guest_time_last_update means the guest time of la