Skip to content

x86/mm/5lvl: Optimize boot-time switching, allow more Xen modes

Kirill A. Shutemov linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/xen: Allow XEN_PV and XEN_PVH to be enabled with X86_5LEVELarch/x86/kernel/head_64.S arch/x86/xen/Kconfig arch/x86/xen/mmu_pv.c+27 -112 replies
2/3x86/mm: Redefine some of page table helpers as macrosarch/x86/include/asm/paravirt.h+13 -100 replies
3/3x86/mm: Offset boot-time paging mode switching costarch/x86/boot/compressed/misc.h arch/x86/entry/entry_64.S arch/x86/include/asm/pgtable_64_types.h +3 more+25 -130 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJuergen Gross
1/3R-b T-b
2/3
3/3

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/3] x86/mm/5lvl: Optimize boot-time switching, allow more Xen modes

This is the last batch of patches that enable boot-time switching between paging modes.

The first patch allows two more Xen modes to be enabled with CONFIG_X86_5LEVEL=y. These modes don't support 5-level paging, but we can use them when boot into 4-level paging mode.

The last two patches optimize switching between paging modes by using code pathching in all hot paths.

Please review and cosider applying.

Kirill A. Shutemov (3):
x86/xen: Allow XEN_PV and XEN_PVH to be enabled with X86_5LEVEL x86/mm: Redefine some of page table helpers as macros x86/mm: Offset boot-time paging mode switching cost

 arch/x86/boot/compressed/misc.h         |  5 +++++
 arch/x86/entry/entry_64.S               | 11 ++---------
 arch/x86/include/asm/paravirt.h         | 23 +++++++++++++----------
 arch/x86/include/asm/pgtable_64_types.h |  5 ++++-
 arch/x86/kernel/head64.c                |  9 +++++++--
 arch/x86/kernel/head_64.S               | 14 +++++++-------
 arch/x86/mm/kasan_init_64.c             |  6 ++++++
 arch/x86/xen/Kconfig                    |  5 -----
 arch/x86/xen/mmu_pv.c                   | 21 +++++++++++++++++++++
 9 files changed, 65 insertions(+), 34 deletions(-)
Signature · 7 lines
2.15.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>