Messages in this thread | | | Date | Mon, 20 Oct 2008 09:34:28 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH] kmemcheck: (finally) use 4k pages for identity mapping |
| |
* Vegard Nossum <vegard.nossum@gmail.com> wrote:
> >From 760932c8607b736504a134ed6feec25e90e089ac Mon Sep 17 00:00:00 2001 > From: Vegard Nossum <vegard.nossum@gmail.com> > 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@gmail.com> > --- > 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
| |