Re: [PATCH] [7/8] CPA: Implement GBpages support in change_page_attr()

From: Andi Kleen
Date: Sat Jan 19 2008 - 14:28:18 EST


On Saturday 19 January 2008 19:53:14 Ingo Molnar wrote:
>
> * Andi Kleen <ak@xxxxxxx> wrote:
>
> > arch/x86/mm/pageattr_64.c | 150
> > ++++++++++++++++++++++++++++++++++++----------
> > 1 file changed, 119 insertions(+), 31 deletions(-)
>
> please unify the files first, we dont want to let pageattr_32.c and
> pageattr_64.c diverge even more. Once we get these files unified we
> layer more features ontop of it.

They work significantly differently in a few important areas (e.g. particularly
regarding NX handling and the kernel mapping) Off the top of my
head I don't know of a clean way to unify them. 32bit and 64bit kernel
mappings differ in many significant ways. Maybe it's possible, but it's
certainly not something I would want to tackle short term in a hurry.
The kernel mappings between 32bit and 64bit are quite different.

However I would like GBPAGES definitely to make the .25 merge window
and they won't work without the upgraded c_p_a().

So please reconsider.

> While gbpages is not available on
> 32-bit and probably wont ever be, this code has been historically very
> fragile,

I'm sure a hurried up unification would make it even more fragile.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/