[lkml]   [2020]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mips/mm: Add page soft dirty tracking

于 2020年4月27日 GMT+08:00 上午12:54:42, Thomas Bogendoerfer <> 写到:
>On Tue, Apr 21, 2020 at 05:15:27PM +0800, Guoyun Sun wrote:
>> User space checkpoint and restart tool (CRIU) needs the page's change
>> to be soft tracked. This allows to do a pre checkpoint and then dump
>> only touched pages.
>> Signed-off-by: Guoyun Sun <>
>> ---
>> arch/mips/Kconfig | 1 +
>> arch/mips/include/asm/pgtable-bits.h | 8 ++++--
>> arch/mips/include/asm/pgtable.h | 48 ++++++++++++++++++++++++++++++++++--
>this breaks all 32bit builds where CPU support RIXI, because it overflows

Probably make a fixup patch to guard
would be a better option?

Btw: It's really selfish that only enable SOFT_DIRTY for Loongson
but occupied a bit in pagetable for all MIPS systems.

I'd suggest select HAVE_ARCH_SOFT_DIRTY for all 64BIT MIPS systems.
Or provide config options to let expert users decide what feature they need.



Jiaxun Yang

 \ /
  Last update: 2020-04-26 19:12    [W:0.087 / U:1.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site