From: ebiederm@xmission.com (Eric W. Biederman)
To: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org,
Chris Wright <chrisw@sous-sol.org>,
Christian Limpach <Christian.Limpach@cl.cam.ac.uk>,
Christoph Lameter <clameter@sgi.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Gerd Hoffmann <kraxel@suse.de>,
Hollis Blanchard <hollisb@us.ibm.com>,
Ian Pratt <ian.pratt@xensource.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Zachary Amsden <zach@vmware.com>
Subject: Re: [PATCH 1 of 13] Add apply_to_page_range() which applies a function to a pte range
Date: Tue, 01 Aug 2006 06:08:43 -0600 [thread overview]
Message-ID: <m1ejw0zmic.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <79a98a10911fc4e77dce.1154421372@ezr.goop.org> (Jeremy Fitzhardinge's message of "Tue, 01 Aug 2006 01:36:12 -0700")
Jeremy Fitzhardinge <jeremy@xensource.com> writes:
> 2 files changed, 99 insertions(+)
> include/linux/mm.h | 5 ++
> mm/memory.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> Add a new mm function apply_to_page_range() which applies a given
> function to every pte in a given virtual address range in a given mm
> structure. This is a generic alternative to cut-and-pasting the Linux
> idiomatic pagetable walking code in every place that a sequence of
> PTEs must be accessed.
>
> Although this interface is intended to be useful in a wide range of
> situations, it is currently used specifically by several Xen
> subsystems, for example: to ensure that pagetables have been allocated
> for a virtual address range, and to construct batched special
> pagetable update requests to map I/O memory (in ioremap()).
- You don't handle huge pages. For a generic function
that sounds like a problem.
- I believe there is a reason the kernel doesn't already have
a function like this. I seem to recall there being efficiency
and fast path arguments.
- Placing this code in mm/memory.c without a common consumer is
pure kernel bloat for everyone who doesn't use this function,
which is just about everyone.
Eric
next parent reply other threads:[~2006-08-01 12:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <79a98a10911fc4e77dce.1154421372@ezr.goop.org>
2006-08-01 12:08 ` Eric W. Biederman [this message]
2006-08-01 12:34 ` Antonio Vargas
2006-08-01 21:14 ` Chris Wright
2006-08-01 21:31 ` Christoph Lameter
2006-08-02 4:16 ` Rusty Russell
2006-08-02 5:18 ` Christoph Lameter
2006-08-02 6:44 ` Ian Wienand
2006-08-02 6:54 ` Chris Wright
2006-08-02 13:17 ` Paul Cameron Davies
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=m1ejw0zmic.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=akpm@osdl.org \
--cc=chrisw@sous-sol.org \
--cc=clameter@sgi.com \
--cc=hollisb@us.ibm.com \
--cc=ian.pratt@xensource.com \
--cc=jeremy@xensource.com \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=zach@vmware.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
Powered by JetHome