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

2012-07-23 Thread Paolo Bonzini
Il 23/07/2012 07:17, Juan Quintela ha scritto: > Paolo Bonzini wrote: >> From: "Zhang, Yang Z" >> >> Calculate guest RTC based on the time of the last update, instead of >> using timers. The formula is >> >> (base_rtc + guest_time_now - guest_time_last_update + offset) >> >> Base_rtc is the

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

2012-07-22 Thread Juan Quintela
Paolo Bonzini wrote: > From: "Zhang, Yang Z" > > Calculate guest RTC based on the time of the last update, instead of > using timers. The formula is > > (base_rtc + guest_time_now - guest_time_last_update + offset) > > Base_rtc is the RTC value when the RTC was last updated. > Guest_time_now

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

2012-07-20 Thread Paolo Bonzini
From: "Zhang, Yang Z" Calculate guest RTC based on the time of the last update, instead of using timers. The formula is (base_rtc + guest_time_now - guest_time_last_update + offset) Base_rtc is the RTC value when the RTC was last updated. Guest_time_now is the guest time when the access ha