[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <35d6d357-df2d-66fb-2885-af5ff35a1aa0@oracle.com>
Date: Thu, 22 Apr 2021 11:22:58 -0700
From: Mike Kravetz <mike.kravetz@...cle.com>
To: Peter Xu <peterx@...hat.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Cc: "Kirill A . Shutemov" <kirill@...temov.name>,
Jerome Glisse <jglisse@...hat.com>,
Matthew Wilcox <willy@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Axel Rasmussen <axelrasmussen@...gle.com>,
Hugh Dickins <hughd@...gle.com>,
Nadav Amit <nadav.amit@...il.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Mike Rapoport <rppt@...ux.vnet.ibm.com>
Subject: Re: [PATCH 17/23] hugetlb/userfaultfd: Handle UFFDIO_WRITEPROTECT
On 3/22/21 5:49 PM, Peter Xu wrote:
> This starts from passing cp_flags into hugetlb_change_protection() so hugetlb
> will be able to handle MM_CP_UFFD_WP[_RESOLVE] requests.
>
> huge_pte_clear_uffd_wp() is introduced to handle the case where the
> UFFDIO_WRITEPROTECT is requested upon migrating huge page entries.
>
> Signed-off-by: Peter Xu <peterx@...hat.com>
> ---
> include/asm-generic/hugetlb.h | 5 +++++
> include/linux/hugetlb.h | 6 ++++--
> mm/hugetlb.c | 13 ++++++++++++-
> mm/mprotect.c | 3 ++-
> mm/userfaultfd.c | 8 ++++++++
> 5 files changed, 31 insertions(+), 4 deletions(-)
Thanks,
Reviewed-by: Mike Kravetz <mike.kravetz@...cle.com>
--
Mike Kravetz
Powered by blists - more mailing lists