Skip to content

Great change_page_attr patch series v2

Andi Kleen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest31 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31Shrink __PAGE_KERNEL/__PAGE_KERNEL_EXEC on non PAE kernelsarch/x86/mm/init_32.c include/asm-x86/pgtable.h+3 -30 replies
2/31CPA: Do a simple self test at bootarch/x86/Kconfig.debug arch/x86/mm/init_32.c arch/x86/mm/init_64.c+41 -03 replies
3/31Add pte accessors for the global bitinclude/asm-x86/pgtable.h+3 -00 replies
4/31Add pte_pgprot on i386include/asm-x86/pgtable-2level.h include/asm-x86/pgtable-3level.h+4 -01 reply
5/31Don't drop NX bit in pte modifier functions for 32bitinclude/asm-x86/pgtable.h+6 -60 replies
6/31CPA: Undo white space changesarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+126 -1600 replies
7/31Extract page table dumping code from i386 fault handler into dump_pagetable()arch/x86/mm/fault_32.c+39 -333 replies
8/31CPA: Return the page table level in lookup_address()arch/x86/mm/fault_32.c arch/x86/mm/init_32.c arch/x86/mm/pageattr_32.c +4 more+22 -110 replies
9/31CPA: Add simple self test at bootarch/x86/mm/Makefile_32 arch/x86/mm/Makefile_64 arch/x86/mm/pageattr-test.c+235 -01 reply
10/31CPA: Change kernel_map_pages to not use c_p_a()arch/x86/mm/pageattr_32.c+24 -100 replies
11/31CPA: Change 32bit back to init_mm semaphore lockingarch/x86/mm/pageattr_32.c+5 -90 replies
12/31CPA: CLFLUSH support in change_page_attr()arch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+118 -372 replies
13/31CPA: Use macros to modify the PG_arch_1 page flags in change_page_attrarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+19 -64 replies
14/31CPA: Use page granuality TLB flushing in change_page_attrarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+13 -120 replies
15/31CPA: Don't flush the caches when the CPU supports self-snooparch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c include/asm-x86/cpufeature.h+6 -40 replies
16/31CPA: Use wbinvd() macro instead of inline assembly in 64bit c_p_a()arch/x86/mm/pageattr_64.c+1 -10 replies
17/31CPA: Reorder TLB / cache flushes to follow Intel recommendationarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+20 -70 replies
18/31CPA: Make change_page_attr() more robust against use of PAT bitsarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+4 -40 replies
19/31CPA: Limit cache flushing to pages that really change cachingarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c include/asm-x86/pgtable.h+75 -181 reply
20/31CPA: Fix inaccurate comments in 64bit change_page_attr()arch/x86/mm/pageattr_64.c+2 -20 replies
21/31CPA: Dump pagetable when inconsistency is detectedarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+20 -20 replies
22/31CPA: Only queue actually unused page table pages for freeingarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+4 -70 replies
23/31CPA: Remove unnecessary masking of addressarch/x86/mm/pageattr_64.c+1 -10 replies
24/31CPA: Only unmap kernel init pages in text mapping when CONFIG_DEBUG_RODATA is setarch/x86/mm/init_64.c+6 -30 replies
25/31CPA: Always do full TLB flush when splitting large pagesarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+21 -80 replies
26/31CPA: Fix reference counting when changing already changed pagesarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c include/asm-x86/pgtable.h+39 -233 replies
27/31CPA: Change comments of external interfaces to kerneldoc formatDocumentation/DocBook/kernel-api.tmpl arch/x86/mm/pageattr_64.c+42 -122 replies
28/31CPA: Make kernel_text test match boot mapping initializationarch/x86/mm/init_32.c arch/x86/mm/pageattr_32.c include/asm-x86/pgtable_32.h+11 -160 replies
29/31CPA: Add a BUG_ON checking for someone setting the kernel text NXarch/x86/mm/pageattr_32.c+8 -00 replies
30/31Remove set_kernel_execarch/x86/kernel/smpboot_32.c arch/x86/mm/init_32.c include/asm-x86/pgtable_32.h+0 -530 replies
31/31Clean up pte_execarch/x86/mm/fault_32.c include/asm-x86/pgtable-2level.h include/asm-x86/pgtable-3level.h +1 more+2 -170 replies

Reviews trailers per patch

None of the 31 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan Beulich
SeriesA-b
1/31
2/31
3/31
4/31
5/31
6/31
7/31
8/31
9/31
10/31
11/31
12/31
13/31
14/31
15/31
16/31
17/31
18/31
19/31
20/31
21/31
22/31
23/31
24/31
25/31
26/31
27/31
28/31
29/31
30/31
31/31

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH] [0/31] Great change_page_attr patch series v2

Lots of improvements to change_page_attr(). Make it a lot more efficient and fix various bugs.

Changes against earlier version

- Fixed some checkpatch.pl complaints
- Improved self test suite
- Fixed more reference bugs
- Fix NX handling on 32bit
- Remove some useless code there
- Few other random fixes

-Andi