Re: [PATCH v1] selftests: mm: gup_longterm: test unsharing logic when R/O pinning

2024-04-30 Thread Peter Xu
On Tue, Apr 30, 2024 at 03:15:08PM +0200, David Hildenbrand wrote: > In our FOLL_LONGTERM tests, we prefault the page tables for the GUP-fast > test cases to be able to find a PTE and exercise the "longterm pinning > allowed" logic on the GUP-fast path where possible. > > For now, we always prefau

[PATCH v1] selftests: mm: gup_longterm: test unsharing logic when R/O pinning

2024-04-30 Thread David Hildenbrand
In our FOLL_LONGTERM tests, we prefault the page tables for the GUP-fast test cases to be able to find a PTE and exercise the "longterm pinning allowed" logic on the GUP-fast path where possible. For now, we always prefault the page tables writable, resulting in PTEs that are writable. Let's cove