Re: [PATCH v3 3/3] mm/memory.c: Add memory read privilege before filling PTE entry

From: Andrew Morton
Date: Mon May 18 2020 - 23:34:41 EST


On Tue, 19 May 2020 11:22:49 +0800 maobibo <maobibo@xxxxxxxxxxx> wrote:

> how about adding pte_sw_mkyoung alike function which is a noop on all but mips?
> this function is used to set PAGE_ACCESS bit and PAGE_VALID bit on mips platform.

Sounds good. Please ensure that the interface (roles and
responsibilities, etc) is well documented in code comments.