userfaultfd: provide pid in userfault msg
authorAlexey Perevalov <[email protected]>
Wed, 6 Sep 2017 23:23:56 +0000 (16:23 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Sep 2017 00:27:29 +0000 (17:27 -0700)
commit9d4ac934829ac58c5109c49e6dfe677300e5e652
tree95d3de228e2d3f34ef777b7674f27adcf075c84a
parent2376dd7ceddae67432db055ff3f2b7f4122a919d
userfaultfd: provide pid in userfault msg

It could be useful for calculating downtime during postcopy live
migration per vCPU.  Side observer or application itself will be
informed about proper task's sleep during userfaultfd processing.

Process's thread id is being provided when user requeste it by setting
UFFD_FEATURE_THREAD_ID bit into uffdio_api.features.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexey Perevalov <[email protected]>
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Mike Rapoport <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/userfaultfd.c
include/uapi/linux/userfaultfd.h