From: Danylo Mocherniuk <mdanylo@google.com>
To: peterx@redhat.com
Cc: Liam.Howlett@oracle.com, akpm@linux-foundation.org,
alex.sierra@amd.com, avagin@gmail.com, axelrasmussen@google.com,
brauner@kernel.org, dan.j.williams@intel.com, david@redhat.com,
emmir@google.com, gorcunov@gmail.com,
gregkh@linuxfoundation.org, gustavoars@kernel.org,
kernel@collabora.com, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-mm@kvack.org, mdanylo@google.com, namit@vmware.com,
pasha.tatashin@soleen.com, pgofman@codeweavers.com,
rppt@kernel.org, shuah@kernel.org, shy828301@gmail.com,
surenb@google.com, usama.anjum@collabora.com, vbabka@suse.cz,
viro@zeniv.linux.org.uk, willy@infradead.org,
yun.zhou@windriver.com
Subject: Re: [PATCH v7 0/4] Implement IOCTL to get and/or the clear info about PTEs
Date: Wed, 25 Jan 2023 15:45:29 +0100 [thread overview]
Message-ID: <20230125144529.1630917-1-mdanylo@google.com> (raw)
In-Reply-To: <Y9A2PsCS7gfKWfaM@x1n>
On Tue, Jan 24, 2023 at 8:49 PM Peter Xu <peterx@redhat.com> wrote:
> On Mon, Jan 23, 2023 at 06:15:00PM +0500, Muhammad Usama Anjum wrote:
> > > Firstly, doc update is more than welcomed to explain the new interface
> > first (before throwing the code..). That can be done in pagemap.rst on
> > > pagemap changes, or userfaultfd.rst on userfaultfd.
> > Okay. I'll add the documentation in next version or after the series has
> > been accepted. Initially I'd added the documentation. But the code kept on
> > changing so much that I had to spend considerable time on updating the
> > documentation. I know it is better to add documentation with the patches.
> > I'll try to add it.
>
> Yes, logically it should be the thing people start looking with. It'll
> help reviewers to understand how does it work in general if relevant
> description is not in the cover letter, so it can matter even before the
> series is merged.
> > > There're four kinds of masks (required/anyof/excluded/return). Are they
> > > all needed? Why this is a good interface design?
> > Then, CRIU developers Andrea [1] and Danylo [2], asked to include all these
> > different kinds of masks. I'd thought of these masks as fancy filter inside
> > the kernel. But there wasn't anyone else to review. So I'd included them to
> > move forward. Please let me know your thoughts after reading emails from [1].
> The idea makes sense to me, thanks. I just hope "moving it forward" is not
> the only reason that you included it.
> Please also consider to attach relevant links to your next cover letter so
> new reviewers can be aware of why the interface is proposed like that.
> IMHO it would be also great if the CRIU people can acknowledge the
> interface at some point to make sure it satisfies the needs.
I acknowledge that this interface looks good for my use case to get interesting
pages from a big sparse mapping. For Andrei's use case to iteratively dump memory
it also looks good IMO.
> An POC would be even better on CRIU, but maybe that's asking too much.
Can't promise now, but happy to do this when there'll be a clear signal that this
patchset is about to be merged. Meanwhile, I'll make some smaller tests with this
patchset rebased and will get back if there are some problems with that.
> --
> Peter Xu
prev parent reply other threads:[~2023-01-25 14:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 6:45 Muhammad Usama Anjum
2023-01-09 6:45 ` [PATCH v7 1/4] userfaultfd: Add UFFD WP Async support Muhammad Usama Anjum
2023-01-18 16:54 ` Peter Xu
2023-01-19 15:09 ` Muhammad Usama Anjum
2023-01-19 16:35 ` Peter Xu
2023-01-20 14:53 ` Peter Xu
2023-01-23 10:11 ` Muhammad Usama Anjum
2023-01-24 17:26 ` Peter Xu
2023-01-25 12:18 ` Muhammad Usama Anjum
2023-01-09 6:45 ` [PATCH v7 2/4] userfaultfd: split mwriteprotect_range() Muhammad Usama Anjum
2023-01-09 6:45 ` [PATCH v7 3/4] fs/proc/task_mmu: Implement IOCTL to get and/or the clear info about PTEs Muhammad Usama Anjum
2023-01-18 22:28 ` Peter Xu
2023-01-23 12:18 ` Muhammad Usama Anjum
2023-01-24 17:30 ` Peter Xu
2023-01-26 14:32 ` Muhammad Usama Anjum
2023-01-09 6:45 ` [PATCH v7 4/4] selftests: vm: add pagemap ioctl tests Muhammad Usama Anjum
2023-01-18 6:55 ` [PATCH v7 0/4] Implement IOCTL to get and/or the clear info about PTEs Muhammad Usama Anjum
2023-01-18 22:12 ` Peter Xu
2023-01-23 13:15 ` Muhammad Usama Anjum
2023-01-24 19:49 ` Peter Xu
2023-01-25 14:45 ` Danylo Mocherniuk [this message]
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=20230125144529.1630917-1-mdanylo@google.com \
--to=mdanylo@google.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alex.sierra@amd.com \
--cc=avagin@gmail.com \
--cc=axelrasmussen@google.com \
--cc=brauner@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=emmir@google.com \
--cc=gorcunov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=gustavoars@kernel.org \
--cc=kernel@collabora.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=namit@vmware.com \
--cc=pasha.tatashin@soleen.com \
--cc=peterx@redhat.com \
--cc=pgofman@codeweavers.com \
--cc=rppt@kernel.org \
--cc=shuah@kernel.org \
--cc=shy828301@gmail.com \
--cc=surenb@google.com \
--cc=usama.anjum@collabora.com \
--cc=vbabka@suse.cz \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.org \
--cc=yun.zhou@windriver.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