Skip to content

xen/arm: mm: Remove open-coding mappings

Julien Grall xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest19 patches 59 repliesIn review
  2. v2 RFC15 patches 43 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19xen/arm: lpae: Rename LPAE_ENTRIES_MASK_GS to LPAE_ENTRY_MASK_GSxen/arch/arm/include/asm/lpae.h+2 -23 replies
2/19xen/arm: lpae: Use the generic helpers to defined the Xen PT helpersxen/arch/arm/arm32/head.S xen/arch/arm/arm64/head.S xen/arch/arm/include/asm/lpae.h +2 more+80 -673 replies
3/19xen/arm: p2m: Replace level_{orders, masks} arrays with XEN_PT_LEVEL_{ORDER, MASK}xen/arch/arm/p2m.c+6 -114 replies
4/19xen/arm: mm: Allow other mapping size in xen_pt_update_entry()xen/arch/arm/include/asm/page.h xen/arch/arm/mm.c+94 -184 replies
5/19xen/arm: mm: Add support for the contiguous bitxen/arch/arm/include/asm/page.h xen/arch/arm/mm.c+77 -75 replies
6/19xen/arm: mm: Avoid flushing the TLBs when mapping are insertedxen/arch/arm/mm.c+14 -34 replies
7/19xen/arm: mm: Don't open-code Xen PT update in remove_early_mappings()xen/arch/arm/mm.c+5 -53 replies
8/19xen/arm: mm: Re-implement early_fdt_map() using map_pages_to_xen()xen/arch/arm/mm.c+13 -54 replies
9/19xen/arm32: mm: Check if the virtual address is shared before updating itxen/arch/arm/include/asm/config.h xen/arch/arm/mm.c+13 -23 replies
10/19xen/arm32: mm: Re-implement setup_xenheap_mappings() using map_pages_to_xen()xen/arch/arm/mm.c+6 -12 replies
11/19xen/arm: mm: Allocate xen page tables in domheap rather than xenheapxen/arch/arm/mm.c+21 -150 replies
12/19xen/arm: mm: Allow page-table allocation from the boot allocatorxen/arch/arm/mm.c+14 -61 reply
13/19xen/arm: Move fixmap definitions in a separate headerxen/arch/arm/acpi/lib.c xen/arch/arm/include/asm/config.h xen/arch/arm/include/asm/early_printk.h +5 more+40 -175 replies
14/19xen/arm: add Persistent Map (PMAP) infrastructurexen/arch/arm/Kconfig xen/arch/arm/include/asm/fixmap.h xen/arch/arm/include/asm/lpae.h +6 more+159 -68 replies
15/19xen/arm: mm: Clean-up the includes and order themxen/arch/arm/mm.c+10 -171 reply
16/19xen/arm: mm: Use the PMAP helpers in xen_{,un}map_table()xen/arch/arm/mm.c+9 -241 reply
17/19xen/arm64: mm: Add memory to the boot allocator firstxen/arch/arm/setup.c+42 -213 replies
18/19xen/arm: mm: Rework setup_xenheap_mappings()xen/arch/arm/mm.c+18 -691 reply
19/19xen/arm: mm: Re-implement setup_frame_table_mappings() with map_pages_to_xen()xen/arch/arm/mm.c+5 -583 replies

Reviews trailers per patch

13 of 19 patches have a Reviewed-by or Acked-by.

PatchStefano StabelliniMichal OrzelJan BeulichBertrand MarquisHongda Deng
1/19R-b
2/19R-b R-b
3/19R-b
4/19
5/19R-b R-b
6/19
7/19
8/19R-b
9/19
10/19R-b
11/19A-b
12/19R-b
13/19A-b
14/19
15/19A-b
16/19R-b
17/19R-b
18/19R-b
19/19T-b

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

Read the v3 thread

Cover letter [PATCH v3 00/19] xen/arm: mm: Remove open-coding mappings

From: Julien Grall <[email protected]>

Hi all,

This series was originally sent as "xen/arm: mm: Add limited support for superpages" [1] and finally has grown enough to remove most of the open-coding mappings in the boot code.

This will help to:
1) Get better compliance with the Arm memory model
2) Pave the way to support other page size (64KB, 16KB)

The previous version was spent a few months ago. So I have decided to remove all the acked-by/reviewed-by tags.

Cheers,

[1] <[email protected]>
[2] <PA4PR08MB6253F49C13ED56811BA5B64E92479@PA4PR08MB6253.eurprd08.prod.outlook.com>

Julien Grall (18):
xen/arm: lpae: Rename LPAE_ENTRIES_MASK_GS to LPAE_ENTRY_MASK_GS xen/arm: lpae: Use the generic helpers to defined the Xen PT helpers xen/arm: p2m: Replace level_{orders, masks} arrays with

    XEN_PT_LEVEL_{ORDER, MASK}
  xen/arm: mm: Allow other mapping size in xen_pt_update_entry()
  xen/arm: mm: Add support for the contiguous bit
  xen/arm: mm: Avoid flushing the TLBs when mapping are inserted
  xen/arm: mm: Don't open-code Xen PT update in remove_early_mappings()
  xen/arm: mm: Re-implement early_fdt_map() using map_pages_to_xen()
  xen/arm32: mm: Check if the virtual address is shared before updating
    it
  xen/arm32: mm: Re-implement setup_xenheap_mappings() using
    map_pages_to_xen()
  xen/arm: mm: Allocate xen page tables in domheap rather than xenheap
  xen/arm: mm: Allow page-table allocation from the boot allocator
  xen/arm: Move fixmap definitions in a separate header
  xen/arm: mm: Clean-up the includes and order them
  xen/arm: mm: Use the PMAP helpers in xen_{,un}map_table()
  xen/arm64: mm: Add memory to the boot allocator first
  xen/arm: mm: Rework setup_xenheap_mappings()
  xen/arm: mm: Re-implement setup_frame_table_mappings() with
    map_pages_to_xen()

Wei Liu (1):
xen/arm: add Persistent Map (PMAP) infrastructure

 xen/arch/arm/Kconfig                    |   1 +
 xen/arch/arm/acpi/lib.c                 |   2 +
 xen/arch/arm/arm32/head.S               |  14 +-
 xen/arch/arm/arm64/head.S               |  14 +-
 xen/arch/arm/include/asm/config.h       |  10 +-
 xen/arch/arm/include/asm/early_printk.h |   1 +
 xen/arch/arm/include/asm/fixmap.h       |  41 ++
 xen/arch/arm/include/asm/lpae.h         |  85 ++--
 xen/arch/arm/include/asm/mm.h           |   4 -
 xen/arch/arm/include/asm/page.h         |   8 +
 xen/arch/arm/include/asm/pmap.h         |  33 ++
 xen/arch/arm/kernel.c                   |   1 +
 xen/arch/arm/mm.c                       | 530 +++++++++++++-----------
 xen/arch/arm/p2m.c                      |  28 +-
 xen/arch/arm/setup.c                    |  63 ++-
 xen/common/Kconfig                      |   3 +
 xen/common/Makefile                     |   1 +
 xen/common/pmap.c                       |  79 ++++
 xen/include/xen/acpi.h                  |  18 +-
 xen/include/xen/pmap.h                  |  16 +
 20 files changed, 613 insertions(+), 339 deletions(-)
 create mode 100644 xen/arch/arm/include/asm/fixmap.h
 create mode 100644 xen/arch/arm/include/asm/pmap.h
 create mode 100644 xen/common/pmap.c
 create mode 100644 xen/include/xen/pmap.h
Signature · 1 line
2.32.0