Re: [PATCH] migration/multifd: Fix clearing of mapped-ram zero pages

2024-03-21 Thread Peter Xu
On Thu, Mar 21, 2024 at 05:12:42PM -0300, Fabiano Rosas wrote: > When the zero page detection is done in the multifd threads, we need > to iterate the second part of the pages->offset array and clear the > file bitmap for each zero page. The piece of code we merged to do that > is wrong. > > The

[PATCH] migration/multifd: Fix clearing of mapped-ram zero pages

2024-03-21 Thread Fabiano Rosas
When the zero page detection is done in the multifd threads, we need to iterate the second part of the pages->offset array and clear the file bitmap for each zero page. The piece of code we merged to do that is wrong. The reason this has passed all the tests is because the bitmap is initialized