Skip to content

x86: Use BRK to pre mapping page table to make xen happy

Yinghai Lu lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86, mm: align start address to correct big page sizearch/x86/mm/init_32.c arch/x86/mm/init_64.c+4 -20 replies
2/7x86, mm: Use big page size for small memory rangearch/x86/mm/init.c+32 -00 replies
3/7x86, mm: Don't clear page table if next range is ramarch/x86/mm/init_64.c+16 -210 replies
4/7x86, mm: only keep initial mapping for ramarch/x86/mm/init_64.c+6 -32 replies
5/7x86, mm: Break down init_all_memory_mappingarch/x86/mm/init.c+19 -222 replies
6/7x86, mm: setup page table from top-downarch/x86/include/asm/page_types.h arch/x86/include/asm/pgtable.h arch/x86/kernel/setup.c +3 more+71 -1567 replies
7/7x86, mm: Remove early_memremap workaround for page table accessingarch/x86/mm/init_64.c+4 -340 replies

Reviews trailers per patch

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

PatchDavid S. MillerPekka EnbergStefano Stabellini
SeriesA-b A-b R-b R-b R-b R-b R-b R-b A-b A-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH -v3 0/7] x86: Use BRK to pre mapping page table to make xen happy

on top of tip/x86/mm2, but please zap last patch in that branch.

1. use brk to mapping first PMD_SIZE range.
2. top down to initialize page table range by range.
3. get rid of calculate page table, and find_early_page_table.
4. remove early_ioremap in page table accessing.

v2: changes, update xen interface about pagetable_reserve, so not
use pgt_buf_* in xen code directly.
v3: use range top-down to initialize page table, so will not use
calculating/find early table anymore.
also reorder the patches sequence.

could be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-x86-mm

later we could get rid of workaround about xen_mapping_pagetable_reserve, that could kill another 50 lines codes. --- will do that later because x86/mm2 is not updated to linus/master yet. If we do that now, will have merge conflicts.

Thanks

Yinghai Lu

Yinghai Lu (7):
x86, mm: align start address to correct big page size x86, mm: Use big page size for small memory range
x86, mm: Don't clear page table if next range is ram x86, mm: only keep initial mapping for ram
x86, mm: Break down init_all_memory_mapping
x86, mm: setup page table from top-down
x86, mm: Remove early_memremap workaround for page table accessing

 arch/x86/include/asm/page_types.h |    1 +
 arch/x86/include/asm/pgtable.h    |    1 +
 arch/x86/kernel/setup.c           |    3 +
 arch/x86/mm/init.c                |  251 ++++++++++++------------------------
 arch/x86/mm/init_32.c             |   18 +++-
 arch/x86/mm/init_64.c             |  100 ++++++---------
 6 files changed, 144 insertions(+), 230 deletions(-)
Signature · 1 line
1.7.7