Re: [patches] Re: [PATCH] x86-64: adjust pmd_bad()

From: Andi Kleen
Date: Wed Nov 15 2006 - 12:23:43 EST


On Wednesday 15 November 2006 18:01, Hugh Dickins wrote:
> On Wed, 15 Nov 2006, Jan Beulich wrote:
>
> > Make pmd_bad() symmetrical to pgd_bad() and pud_bad(). At once,
> > simplify them all.
>
> Symmetrical and simpler, yes, but you're weakening the pmd_bad() test:
> no longer requires that all those _KERNPG_TABLE bits be set. Wouldn't
> it be better to go the other way and strengthen pgd_bad, pud_bad?

That's a good point. Yes that would be better. If it works :)

They can't be completely the same because we don't set large page bits on
PGDs (on PUDs we will eventually with 1GB pages)

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