Re: [PATCH v2 17/26] userfaultfd: wp: support swap and page migration

2019-02-25 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:23AM +0800, Peter Xu wrote: > For either swap and page migration, we all use the bit 2 of the entry to > identify whether this entry is uffd write-protected. It plays a similar > role as the existing soft dirty bit in swap entries but only for keeping > the uffd-wp tr

Re: [PATCH v2 17/26] userfaultfd: wp: support swap and page migration

2019-02-24 Thread Peter Xu
On Thu, Feb 21, 2019 at 01:16:19PM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:23AM +0800, Peter Xu wrote: > > For either swap and page migration, we all use the bit 2 of the entry to > > identify whether this entry is uffd write-protected. It plays a similar > > role as the existi

Re: [PATCH v2 17/26] userfaultfd: wp: support swap and page migration

2019-02-21 Thread Jerome Glisse
On Tue, Feb 12, 2019 at 10:56:23AM +0800, Peter Xu wrote: > For either swap and page migration, we all use the bit 2 of the entry to > identify whether this entry is uffd write-protected. It plays a similar > role as the existing soft dirty bit in swap entries but only for keeping > the uffd-wp tr

[PATCH v2 17/26] userfaultfd: wp: support swap and page migration

2019-02-11 Thread Peter Xu
For either swap and page migration, we all use the bit 2 of the entry to identify whether this entry is uffd write-protected. It plays a similar role as the existing soft dirty bit in swap entries but only for keeping the uffd-wp tracking for a specific PTE/PMD. Something special here is that whe