userfaultfd.2: Minor tweaks to Mike Rapoport's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-05-01 13:32:56 +02:00
parent 5191c68806
commit 265225c1e2
1 changed files with 6 additions and 5 deletions

View File

@ -112,14 +112,15 @@ created for the child process,
which allows userfaultfd monitor to perform user-space paging
for the child process.
Unlike page faults which have to be synchronous and require
Unlike page faults which have to be synchronous and require an
explicit or implicit wakeup,
all other events are delivered asynchronously and
the non-cooperative process resumes execution as
soon as manager executes
.BR read(2).
The userfaultfd manager should carefully synchronize calls
to UFFDIO_COPY with the events processing.
soon as the userfaultfd manager executes
.BR read (2).
The userfaultfd manager should carefully synchronize calls to
.B UFFDIO_COPY
with the processing of events.
The current asynchronous model of the event delivery is optimal for
single threaded non-cooperative userfaultfd manager implementations.