Re: [PATCH 4/4] migration/dirtyrate: implement dirty-bitmap dirtyrate calculation

2021-07-09 Thread Peter Xu
On Sun, Jun 27, 2021 at 01:38:17PM +0800, huang...@chinatelecom.cn wrote: > +static void calculate_dirtyrate_dirty_bitmap(struct DirtyRateConfig config) > +{ > +int64_t msec = 0; > +int64_t start_time; > +uint64_t protect_flags = 0; > +uint64_t initially_set = 0; > +uint64_t pro

[PATCH 4/4] migration/dirtyrate: implement dirty-bitmap dirtyrate calculation

2021-06-26 Thread huangy81
From: Hyman Huang(黄勇) introduce dirty-bitmap mode as the third method of calc-dirty-rate. implement dirty-bitmap dirtyrate calculation, which can be used to measuring dirtyrate in the absence of dirty-ring. introduce "dirty_bitmap:-b" option in hmp calc_dirty_rate to indicate dirty bitmap method