Re: [RFC PATCH 2/6] mm: clone3: Add CLONE_COW_PGTABLE flag

From: Chih-En Lin
Date: Fri May 20 2022 - 23:51:25 EST


On Fri, May 20, 2022 at 02:13:25PM +0000, Christophe Leroy wrote:
>
>
> Le 19/05/2022 à 20:31, Chih-En Lin a écrit :
> > Add CLONE_COW_PGTABLE flag to support clone3() system call to enable the
> > Copy-On-Write (COW) mechanism on the page table.
>
> Is that really something we want the user to decide ? Isn't it an
> internal stuff that should be transparent for users ?
>
> As far as I know, there is no way today to decide whether you want COW
> or not for main memory. Why should there be a choice for the COW of page
> tables ?

Agree.
It should not expose to the user.
COW of page table should become the configuration.
Or, if the change is fine, it can even be the default setting.

Thanks.

---

Sorry I did not group reply the first time.