Re: [PATCH v4 2/6] memory: make global_dirty_log a bitmask

2021-06-16 Thread Hyman Huang
在 2021/6/16 23:22, Peter Xu 写道: On Wed, Jun 16, 2021 at 09:12:28AM +0800, huang...@chinatelecom.cn wrote: diff --git a/include/exec/memory.h b/include/exec/memory.h index b114f54..e31eef2 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -55,7 +55,11 @@ static inline void fuzz

Re: [PATCH v4 2/6] memory: make global_dirty_log a bitmask

2021-06-16 Thread Peter Xu
On Wed, Jun 16, 2021 at 09:12:28AM +0800, huang...@chinatelecom.cn wrote: > diff --git a/include/exec/memory.h b/include/exec/memory.h > index b114f54..e31eef2 100644 > --- a/include/exec/memory.h > +++ b/include/exec/memory.h > @@ -55,7 +55,11 @@ static inline void fuzz_dma_read_cb(size_t addr, >

[PATCH v4 2/6] memory: make global_dirty_log a bitmask

2021-06-15 Thread huangy81
From: Hyman Huang(黄勇) dirty rate measurement may start or stop dirty logging during calculation. this conflict with migration because stop dirty log make migration leave dirty pages out then that'll be a problem. make global_dirty_log a bitmask can let both migration and dirty rate measurement w