From: Muhammad Usama Anjum <usama.anjum@collabora.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Muhammad Usama Anjum" <usama.anjum@collabora.com>,
"Alexander Viro" <viro@zeniv.linux.org.uk>,
"Shuah Khan" <shuah@kernel.org>,
"Christian Brauner" <brauner@kernel.org>,
"Yang Shi" <shy828301@gmail.com>,
"Vlastimil Babka" <vbabka@suse.cz>,
"Liam R . Howlett" <Liam.Howlett@Oracle.com>,
"Yun Zhou" <yun.zhou@windriver.com>,
"Suren Baghdasaryan" <surenb@google.com>,
"Alex Sierra" <alex.sierra@amd.com>,
"Matthew Wilcox" <willy@infradead.org>,
"Pasha Tatashin" <pasha.tatashin@soleen.com>,
"Axel Rasmussen" <axelrasmussen@google.com>,
"Gustavo A . R . Silva" <gustavoars@kernel.org>,
"Dan Williams" <dan.j.williams@intel.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-mm@kvack.org, linux-kselftest@vger.kernel.org,
"Greg KH" <gregkh@linuxfoundation.org>,
kernel@collabora.com, "Cyrill Gorcunov" <gorcunov@gmail.com>,
"Mike Rapoport" <rppt@kernel.org>,
"Nadav Amit" <namit@vmware.com>,
"David Hildenbrand" <david@redhat.com>,
"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
"Michał Mirosław" <emmir@google.com>,
"Andrei Vagin" <avagin@gmail.com>,
"Danylo Mocherniuk" <mdanylo@google.com>,
"Paul Gofman" <pgofman@codeweavers.com>,
"Peter Xu" <peterx@redhat.com>
Subject: Re: [PATCH v33 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs
Date: Mon, 28 Aug 2023 11:57:44 +0500 [thread overview]
Message-ID: <31981423-9edd-46b6-b5f8-17aae07b8336@collabora.com> (raw)
In-Reply-To: <20230821141518.870589-3-usama.anjum@collabora.com>
On 8/21/23 7:15 PM, Muhammad Usama Anjum wrote:
> The PAGEMAP_SCAN IOCTL on the pagemap file can be used to get or optionally
> clear the info about page table entries. The following operations are
> supported in this IOCTL:
> - Scan the address range and get the memory ranges matching the provided
> criteria. This is performed when the output buffer is specified.
> - Write-protect the pages. The PM_SCAN_WP_MATCHING is used to write-protect
> the pages of interest. The PM_SCAN_CHECK_WPASYNC aborts the operation if
> non-Async Write Protected pages are found. The ``PM_SCAN_WP_MATCHING``
> can be used with or without PM_SCAN_CHECK_WPASYNC.
> - Both of those operations can be combined into one atomic operation where
> we can get and write protect the pages as well.
>
> Following flags about pages are currently supported:
> - PAGE_IS_WPALLOWED - Page has async-write-protection enabled
> - PAGE_IS_WRITTEN - Page has been written to from the time it was write protected
> - PAGE_IS_FILE - Page is file backed
> - PAGE_IS_PRESENT - Page is present in the memory
> - PAGE_IS_SWAPPED - Page is in swapped
> - PAGE_IS_PFNZERO - Page has zero PFN
> - PAGE_IS_HUGE - Page is THP or Hugetlb backed
>
> This IOCTL can be extended to get information about more PTE bits. The
> entire address range passed by user [start, end) is scanned until either
> the user provided buffer is full or max_pages have been found.
>
> Reviewed-by: Andrei Vagin <avagin@gmail.com>
> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
> Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Now we have the reviewed-by tags as well. The reviewers are happy with
current version. Can you please have a look and possibly pick these up?
--
BR,
Muhammad Usama Anjum
next prev parent reply other threads:[~2023-08-28 6:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 14:15 [PATCH v33 0/6] " Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 1/6] userfaultfd: UFFD_FEATURE_WP_ASYNC Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-08-28 6:57 ` Muhammad Usama Anjum [this message]
2023-08-21 14:15 ` [PATCH v33 3/6] fs/proc/task_mmu: Add fast paths to get/clear PAGE_IS_WRITTEN flag Muhammad Usama Anjum
2023-10-06 11:40 ` Muhammad Usama Anjum
2023-10-06 16:27 ` Andrew Morton
2023-08-21 14:15 ` [PATCH v33 4/6] tools headers UAPI: Update linux/fs.h with the kernel sources Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 5/6] mm/pagemap: add documentation of PAGEMAP_SCAN IOCTL Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 6/6] selftests: mm: add pagemap ioctl tests Muhammad Usama Anjum
2023-11-02 11:45 ` Ryan Roberts
2023-11-02 11:49 ` Muhammad Usama Anjum
2023-11-02 12:04 ` Ryan Roberts
2023-09-06 12:44 ` [PATCH v33 0/6] Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-09-06 16:06 ` Greg KH
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=31981423-9edd-46b6-b5f8-17aae07b8336@collabora.com \
--to=usama.anjum@collabora.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=mdanylo@google.com \
--cc=mirq-linux@rere.qmqm.pl \
--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=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
all inboxes | Powered by JetHome®