qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 0/5] mc146818rtc: fix Windows VM clock faster


From: Xiao Guangrong
Subject: Re: [Qemu-devel] [PATCH v3 0/5] mc146818rtc: fix Windows VM clock faster
Date: Thu, 18 May 2017 10:26:54 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0



On 05/10/2017 05:53 PM, Paolo Bonzini wrote:


On 10/05/2017 10:32, address@hidden wrote:
From: Xiao Guangrong <address@hidden>

Changelog in v3:
Thanks to Paolo's the elaborate review comments, this version
simplifies the logic of periodic_timer_update() significantly
that includes:
1) introduce rtc_periodic_clock_ticks() that takes both regA and
    regB into account and returns the period clock
2) count the clocks since last interrupt by always using current
    clock subtracts the clock when last interrupt happened
3) improve the assert() logic

Paolo, all you comments have been reflected in this version except
globally using s->period because in the current code, only x86 is
using s->period so that we should obey this rule to keep compatible
migration. I have added the comment to explain this suitable in the
code:

             /*
              * as the old QEMUs only used s->period for the case that
              * LOST_TICK_POLICY_SLEW is used, in order to keep the
              * compatible migration, we obey the rule as old QEMUs.
              */
             s->period = period;
If anything i missed, please let me know. :)

Looks great.  Thanks for following up quickly on the reviews.


Paolo, if it is okay to you, could you please consider to merge this
patchset? ;)



reply via email to

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