Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415750

Re: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY

From "Hillf Danton" <hillf.zj@alibaba-inc.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY
Date 2016-06-07 08:40 +0200
Message-ID <rHiQa-7y0-29@gated-at.bofh.it> (permalink)
References <rH6OZ-80Q-3@gated-at.bofh.it> <rH6OZ-80Q-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> @@ -182,6 +354,13 @@ retry:
>  		goto out_unlock;
> 
>  	/*
> +	 * If this is a HUGETLB vma, pass off to appropriate routine
> +	 */
> +	if (dst_vma->vm_flags & VM_HUGETLB)

Use is_vm_hugetlb_page()?
And in cases in subsequent patches?

Hillf
> +		return  __mcopy_atomic_hugetlb(dst_mm, dst_vma, dst_start,
> +						src_start, len, false);
> +
> +	/*
>  	 * Be strict and only allow __mcopy_atomic on userfaultfd
>  	 * registered ranges to prevent userland errors going
>  	 * unnoticed. As far as the VM consistency is concerned, it
> --
> 2.4.11

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY Mike Kravetz <mike.kravetz@oracle.com> - 2016-06-06 19:50 +0200
  Re: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY "Hillf Danton" <hillf.zj@alibaba-inc.com> - 2016-06-07 08:40 +0200
    Re: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for  huge page UFFDIO_COPY Mike Kravetz <mike.kravetz@oracle.com> - 2016-06-07 18:40 +0200

csiph-web