Re: [PATCH] kmemcheck: (finally) use 4k pages for identity mapping

From: Ingo Molnar
Date: Mon Oct 20 2008 - 03:34:52 EST



* Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:

> >From 760932c8607b736504a134ed6feec25e90e089ac Mon Sep 17 00:00:00 2001
> From: Vegard Nossum <vegard.nossum@xxxxxxxxx>
> Date: Sun, 19 Oct 2008 15:28:04 +0200
> Subject: [PATCH] kmemcheck: (finally) use 4k pages for identity mapping
>
> At last I found the right hooks for doing this properly. DEBUG_PAGEALLOC
> has the exact same requirement: Kernel pages must be mapped with 4k
> physical pages (since that's the size of pages returned by the page
> allocator).
>
> Now we finally get rid of the need to do set_memory_4k() or try to work
> around TLB flushing from interrupt context. Yay!
>
> Has been tested on both 32- and 64-bit on a P4 and a Dual Core.
>
> Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxx>
> ---
> arch/x86/kernel/cpu/common.c | 7 -------
> arch/x86/mm/init_32.c | 2 +-
> arch/x86/mm/init_64.c | 2 +-
> arch/x86/mm/kmemcheck/kmemcheck.c | 4 ----
> mm/kmemcheck.c | 8 --------
> 5 files changed, 2 insertions(+), 21 deletions(-)

nice! Pulled into tip/kmemcheck-v2, thanks Vegard.

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