Skip to content

RFC Unify asm-x86/pgtable.h and page.h

Jeremy Fitzhardinge lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: kill mk_pte_hugearch/x86/mm/init_64.c include/asm-x86/pgtable_64.h+1 -110 replies
2/7x86: clean up mm/init_32.carch/x86/mm/init_32.c+21 -102 replies
3/7x86: clean up asm-x86/page*.hinclude/asm-x86/page.h include/asm-x86/page_32.h include/asm-x86/page_64.h+95 -684 replies
4/7x86: unify pgtable*.hinclude/asm-x86/pgtable-2level.h include/asm-x86/pgtable-3level.h include/asm-x86/pgtable.h +2 more+331 -4770 replies
5/7x86: simplify pagetable-related operationsin paravirt.hinclude/asm-x86/paravirt.h+141 -1830 replies
6/7x86/xen: simplify Xen mmu operationsarch/x86/xen/enlighten.c arch/x86/xen/mmu.c arch/x86/xen/mmu.h+41 -600 replies
7/7x86: fix up formatting in pgtable*.hinclude/asm-x86/pgtable-2level.h include/asm-x86/pgtable-3level.h include/asm-x86/pgtable.h +1 more+118 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/7] Unify asm-x86/pgtable.h and page.h

NB: RFC ONLY. DO NOT APPLY.

This series unifies many definitions in asm-x86/pgtable.h and page.h. Later in the series, I take advantage of some of the earlier infrastructure to simplify paravirt.h and bits of the Xen code.

This patch applies on top of Glauber's 64-bit pvops unification, so it won't apply directly to the current tree.

I've tested all the 32-bit combinations (paravirt/non-paravirt/PAE/non-PAE), but haven't set up a 64-bit test box yet.

The diffstat of the pure unification bits is nice:

 arch/x86/mm/init_32.c            |   31 ++-
 arch/x86/mm/init_64.c            |    3 
 arch/x86/xen/enlighten.c         |    8 
 arch/x86/xen/mmu.c               |   67 +++-----
 arch/x86/xen/mmu.h               |   26 ---
 include/asm-x86/page.h           |   49 ++++-
 include/asm-x86/page_32.h        |   77 +++++----
 include/asm-x86/page_64.h        |   37 +---
 include/asm-x86/paravirt.h       |  324 ++++++++++++++++-----------------------
 include/asm-x86/pgtable-2level.h |   21 --
 include/asm-x86/pgtable-3level.h |   40 ----
 include/asm-x86/pgtable.h        |  318 ++++++++++++++++++++++++++++++++++++++
 include/asm-x86/pgtable_32.h     |  204 ------------------------
 include/asm-x86/pgtable_64.h     |  234 ----------------------------
 14 files changed, 630 insertions(+), 809 deletions(-)

(The code formatting patch adds a pile of lines because it splits long single lints into multiline code.)

J