Skip to content

Great change_page_attr patch series v3

Andi Kleen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest36 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/36Undo pat cpa patcharch/x86/mm/pageattr_32.c+10 -140 replies
2/36Undo pageattr_32 portions of 11c9734cbcf4c5862260442a5d56dd4779799fccarch/x86/mm/pageattr_32.c+2 -40 replies
3/36Undo pageattr_64 parts of 4157e20af49a04d75a807e6d15b3e70c8e688cccarch/x86/mm/pageattr_64.c+5 -40 replies
4/36CPA: Undo white space changesarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+126 -1600 replies
5/36CPA: Implement change_page_attr_addr entry point for i386arch/x86/mm/pageattr_32.c+15 -00 replies
6/36CPA Handle 4K split pages at boot on 64bitarch/x86/mm/pageattr_64.c+3 -40 replies
7/36Shrink __PAGE_KERNEL/__PAGE_KERNEL_EXEC on non PAE kernelsarch/x86/mm/init_32.c include/asm-x86/pgtable.h+3 -30 replies
8/36CPA: Do a simple self test at bootarch/x86/Kconfig.debug arch/x86/mm/init_32.c arch/x86/mm/init_64.c+41 -00 replies
9/36Add pte accessors for the global bitinclude/asm-x86/pgtable.h+3 -00 replies
10/36Add pte_pgprot on i386include/asm-x86/pgtable.h include/asm-x86/pgtable_64.h+2 -20 replies
11/36Don't drop NX bit in pte modifier functions for 32bitinclude/asm-x86/pgtable.h+6 -60 replies
12/36Extract page table dumping code from i386 fault handler into dump_pagetable()arch/x86/mm/fault_32.c+39 -330 replies
13/36CPA: 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+24 -120 replies
14/36CPA: Add simple self test at bootarch/x86/mm/Makefile_32 arch/x86/mm/Makefile_64 arch/x86/mm/pageattr-test.c+235 -00 replies
15/36CPA: Change kernel_map_pages to not use c_p_a()arch/x86/mm/pageattr_32.c+24 -100 replies
16/36CPA: Change 32bit back to init_mm semaphore lockingarch/x86/mm/pageattr_32.c+5 -90 replies
17/36CPA: CLFLUSH support in change_page_attr()arch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+118 -370 replies
18/36CPA: 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 -60 replies
19/36CPA: Use page granuality TLB flushing in change_page_attrarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+13 -120 replies
20/36CPA: 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
21/36CPA: Use wbinvd() macro instead of inline assembly in 64bit c_p_a()arch/x86/mm/pageattr_64.c+1 -10 replies
22/36CPA: Reorder TLB / cache flushes to follow Intel recommendationarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+20 -70 replies
23/36CPA: 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
24/36CPA: 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 -180 replies
25/36CPA: Fix inaccurate comments in 64bit change_page_attr()arch/x86/mm/pageattr_64.c+2 -20 replies
26/36CPA: Dump pagetable when inconsistency is detectedarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+20 -20 replies
27/36CPA: Only queue actually unused page table pages for freeingarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+4 -70 replies
28/36CPA: Remove unnecessary masking of addressarch/x86/mm/pageattr_64.c+1 -10 replies
29/36CPA: Only unmap kernel init pages in text mapping when CONFIG_DEBUG_RODATA is setarch/x86/mm/init_64.c+6 -30 replies
30/36CPA: Always do full TLB flush when splitting large pagesarch/x86/mm/pageattr_32.c arch/x86/mm/pageattr_64.c+21 -80 replies
31/36CPA: 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 -230 replies
32/36CPA: Change comments of external interfaces to kerneldoc formatDocumentation/DocBook/kernel-api.tmpl arch/x86/mm/pageattr_64.c+42 -120 replies
33/36CPA: 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
34/36CPA: Add a BUG_ON checking for someone setting the kernel text NXarch/x86/mm/pageattr_32.c+8 -00 replies
35/36Remove set_kernel_execarch/x86/kernel/smpboot_32.c arch/x86/mm/init_32.c include/asm-x86/pgtable_32.h+0 -530 replies
36/36Clean 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

31 of 36 patches have a Reviewed-by or Acked-by.

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

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/36] Great change_page_attr patch series v3

Changes to previous versions:
- Ported to the latest git-x86 including the PAT patchkit This undoes some changes in the PAT patches and reimplements them in a different way. End result should be equivalent, but this made it easier for me to merge the patches.
- Fix NX bit handling (I think even after Jeremy's fixes it was still not completely right)
- Minor fixes based on feedback

-Andi