From: Nadav Amit <namit@vmware.com>
To: Peter Xu <peterx@redhat.com>
Cc: Linux MM <linux-mm@kvack.org>,
Mike Kravetz <mike.kravetz@oracle.com>,
Hugh Dickins <hughd@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Axel Rasmussen <axelrasmussen@google.com>,
David Hildenbrand <david@redhat.com>,
Mike Rapoport <rppt@linux.ibm.com>
Subject: Re: [RFC PATCH v2 1/5] userfaultfd: introduce uffd_flags
Date: Tue, 21 Jun 2022 17:41:33 +0000 [thread overview]
Message-ID: <DF51CAEE-6560-418D-837C-448D8C8F6E60@vmware.com> (raw)
In-Reply-To: <YrHjvGs39lZ6m8Fd@xz-m1.local>
On Jun 21, 2022, at 8:29 AM, Peter Xu <peterx@redhat.com> wrote:
> ⚠ External Email
>
> On Sun, Jun 19, 2022 at 04:34:45PM -0700, Nadav Amit wrote:
>> @@ -683,30 +681,33 @@ static __always_inline ssize_t __mcopy_atomic(struct mm_struct *dst_mm,
>>
>> ssize_t mcopy_atomic(struct mm_struct *dst_mm, unsigned long dst_start,
>> unsigned long src_start, unsigned long len,
>> - atomic_t *mmap_changing, __u64 mode)
>> + atomic_t *mmap_changing, uffd_flags_t uffd_flags)
>> {
>> return __mcopy_atomic(dst_mm, dst_start, src_start, len,
>> - MCOPY_ATOMIC_NORMAL, mmap_changing, mode);
>> + MCOPY_ATOMIC_NORMAL, mmap_changing, uffd_flags);
>> }
>>
>> ssize_t mfill_zeropage(struct mm_struct *dst_mm, unsigned long start,
>> - unsigned long len, atomic_t *mmap_changing)
>> + unsigned long len, atomic_t *mmap_changing,
>> + uffd_flags_t uffd_flags)
>
> Should this be fed into the last parameter of __mcopy_atomic() below?
>
>> {
>> return __mcopy_atomic(dst_mm, start, 0, len, MCOPY_ATOMIC_ZEROPAGE,
>> mmap_changing, 0);
>> }
>>
>> ssize_t mcopy_continue(struct mm_struct *dst_mm, unsigned long start,
>> - unsigned long len, atomic_t *mmap_changing)
>> + unsigned long len, atomic_t *mmap_changing,
>> + uffd_flags_t uffd_flags)
>
> Same question here..
Yes it should. I think I will add flags for CONTINUE/ZERO ACCESS/WRITE
just for consistency, even if we eventually decide to disregard them.
next prev parent reply other threads:[~2022-06-21 17:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-19 23:34 [RFC PATCH v2 0/5] userfaultfd: support access/write hints Nadav Amit
2022-06-19 23:34 ` [RFC PATCH v2 1/5] userfaultfd: introduce uffd_flags Nadav Amit
2022-06-21 8:41 ` David Hildenbrand
2022-06-21 15:31 ` Peter Xu
2022-06-21 15:29 ` Peter Xu
2022-06-21 17:41 ` Nadav Amit [this message]
2022-06-19 23:34 ` [RFC PATCH v2 2/5] userfaultfd: introduce access-likely mode for copy/wp operations Nadav Amit
2022-06-21 8:48 ` David Hildenbrand
2022-06-21 15:42 ` Peter Xu
2022-06-21 17:27 ` Nadav Amit
2022-06-19 23:34 ` [RFC PATCH v2 3/5] userfaultfd: introduce write-likely " Nadav Amit
2022-06-21 16:38 ` Peter Xu
2022-06-21 17:14 ` Nadav Amit
2022-06-21 18:10 ` Peter Xu
2022-06-21 18:30 ` Nadav Amit
2022-06-21 18:43 ` Peter Xu
2022-06-19 23:34 ` [RFC PATCH v2 4/5] userfaultfd: zero access/write hints Nadav Amit
2022-06-21 17:04 ` Peter Xu
2022-06-21 17:17 ` Nadav Amit
2022-06-21 17:56 ` Peter Xu
2022-06-21 17:58 ` Nadav Amit
2022-06-19 23:34 ` [RFC PATCH v2 5/5] selftest/userfaultfd: test read/write hints Nadav Amit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DF51CAEE-6560-418D-837C-448D8C8F6E60@vmware.com \
--to=namit@vmware.com \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=david@redhat.com \
--cc=hughd@google.com \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.com \
--cc=peterx@redhat.com \
--cc=rppt@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox