Re: 4level page tables for Linux

From: H. Peter Anvin
Date: Sat Oct 16 2004 - 21:58:36 EST


Followup to: <20041014092540.5416.qmail@xxxxxxxxxxxxxxxxxxx>
By author: linux@xxxxxxxxxxx
In newsgroup: linux.dev.kernel
>
> > Numbers for all of them would be easy to deal with.
> > Like this: pd1, pd2, pd3, pd4...
> >
> > I'd number going toward the page, because that's
> > the order in which these things get walked.
>
> On the other hand, these extensions tend to get made to the top,
> and it's confusing if, in a 2-level system, only pd3 and pd4 are used.
>
> Perhaps a little-endian scheme (pd1 = pte, pt2=pmd, pd4=pgd) would
> be better after all.

I believe so, for the same reason that littleendian actually makes
more sense for numbers in the long run. It's one of those things
where the "first perception" doesn't match what makes sense in the
long run.

-hpa
-
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/