Re: [PATCH 15/23] hugetlb/userfaultfd: Hook page faults for uffd write protection
From: Mike Kravetz
Date: Wed Apr 21 2021 - 18:04:39 EST
On 3/22/21 5:49 PM, Peter Xu wrote:
> Hook up hugetlbfs_fault() with the capability to handle userfaultfd-wp faults.
>
> We do this slightly earlier than hugetlb_cow() so that we can avoid taking some
> extra locks that we definitely don't need.
>
> Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
> ---
> mm/hugetlb.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
That is pretty straight forward,
Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz