[Qemu-devel] [PATCH v2 4/4] RTC:Add UIP(update in progress) check logic

2012-02-19 Thread Zhang, Yang Z
The UIP(update in progress) is set when RTC is updating. We only consider the normal oscillator(32Khz) mode. When time base is 32kHz, the update cycle takes 1984us at the end of every second. And the update cycle begins 244us later after UIP is set. So the UIP is set in 2228us at end of every

Re: [Qemu-devel] [PATCH v2 4/4] RTC:Add UIP(update in progress) check logic

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 01:25 AM, Zhang, Yang Z wrote: When time base is 32kHz, the update cycle takes 1984us at the end of every second. And the update cycle begins 244us later after UIP is set. So the UIP is set in 2228us at end of every second. I think we can keep UIP set only for 244us, since our