Re: [PATCH 4/4] ioctl_userfaultfd.2: Add write-protect mode docs
From: Peter Xu <peterx@redhat.com>
Date: 2021-03-04 16:15:16
Also in:
linux-mm, lkml
From: Peter Xu <peterx@redhat.com>
Date: 2021-03-04 16:15:16
Also in:
linux-mm, lkml
On Wed, Mar 03, 2021 at 08:59:47PM -0500, Peter Xu wrote:
Userfaultfd write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu <peterx@redhat.com> --- man2/ioctl_userfaultfd.2 | 74 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 70 insertions(+), 4 deletions(-)diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 1965d1932..3feb888a8 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2@@ -208,10 +208,11 @@ signal will be sent to the faulting process. Applications using this feature will not require the use of a userfaultfd monitor for processing memory accesses to the regions registered with userfaultfd. +.TP .BR UFFD_FEATURE_THREAD_ID " (since Linux 4.14)" If this feature bit is set, .I uffd_msg.pagefault.feat.ptid -Will be set +will be set to the faulted thread ID for each page fault message.
These two changes should belong to the previous patch - will get them fixed too. -- Peter Xu