lkml.org 
[lkml]   [2007]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 15/26] Xen-paravirt_ops: Add apply_to_page_range() which applies a function to a pte range.
* Ingo Molnar (mingo@elte.hu) wrote:
>
> * Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>
> > 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.
>
> nice one! I suspect we could simplify some of the less
> performance-critical open-coded pagetable walker loops in the kernel
> with this? (i'm not even sure it's all that much of a performance loss
> to pass a function pointer around - would be nice to convert say
> mprotect() to this and see the performance difference?)

We went through this before, and eventually got kick back to
keep it Xen specific. There's still some effort for generalized
walkers from the Gelato folks IIRC. And we can certainly adapt.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-16 17:51    [W:0.518 / U:7.620 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site