Skip to content

switch to domheap for Xen page tables

Hongyan Xia xen-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest13 patches 7 repliesIn review
  2. v913 patches 6 repliesSuperseded
  3. v815 patches 15 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v715 patches16 repliesSuperseded
v615 patches13 repliesSuperseded

Changes in v10 from the cover letter

- rebase.
- address comments in 01/13, which propagates a change into 02/13.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13x86/mm: rewrite virt_to_xen_l*exen/arch/x86/mm.c xen/include/asm-x86/mm.h+72 -311 reply
2/13x86/mm: switch to new APIs in map_pages_to_xenxen/arch/x86/mm.c+38 -261 reply
3/13x86/mm: switch to new APIs in modify_xen_mappingsxen/arch/x86/mm.c+36 -211 reply
4/13x86_64/mm: introduce pl2e in paging_initxen/arch/x86/x86_64/mm.c+9 -70 replies
5/13x86_64/mm: switch to new APIs in paging_initxen/arch/x86/x86_64/mm.c+20 -140 replies
6/13x86_64/mm: switch to new APIs in setup_m2p_tablexen/arch/x86/x86_64/mm.c+19 -130 replies
7/13efi: use new page table APIs in copy_mappingxen/common/efi/boot.c+21 -70 replies
8/13efi: switch to new APIs in EFI codexen/arch/x86/efi/runtime.h xen/common/efi/boot.c xen/common/efi/efi.h +1 more+48 -310 replies
9/13x86/smpboot: add exit path for clone_mapping()xen/arch/x86/smpboot.c+11 -50 replies
10/13x86/smpboot: switch clone_mapping() to new APIsxen/arch/x86/smpboot.c+27 -170 replies
11/13x86/mm: drop old page table APIsxen/arch/x86/mm.c xen/arch/x86/setup.c xen/arch/x86/smpboot.c +2 more+4 -250 replies
12/13x86: switch to use domheap page for page tablesxen/arch/x86/mm.c+4 -40 replies
13/13x86/mm: drop _new suffix for page table APIsxen/arch/x86/mm.c xen/arch/x86/smpboot.c xen/arch/x86/x86_64/mm.c +1 more+28 -280 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/13R-b
2/13R-b
3/13R-b
4/13A-b
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13A-b
10/13R-b
11/13R-b
12/13R-b
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 00/13] switch to domheap for Xen page tables

From: Hongyan Xia <[email protected]>

This series rewrites all the remaining functions and finally makes the switch from xenheap to domheap for Xen page tables, so that they no longer need to rely on the direct map, which is a big step towards removing the direct map.

---
Changed in v10:
- rebase.
- address comments in 01/13, which propagates a change into 02/13.

Changed in v9:
- drop first 2 patches which have been merged in XSA-345.
- adjust code around L3 page locking in mm.c.

Changed in v8:
- address comments in v7.
- rebase

Changed in v7:
- rebase and cleanup.
- address comments in v6.
- add alloc_map_clear_xen_pt() helper to simplify the patches in this series.

Changed in v6:
- drop the patches that have already been merged.
- rebase and cleanup.
- rewrite map_pages_to_xen() and modify_xen_mappings() in a way that does not require an end_of_loop goto label.

Hongyan Xia (2):
x86/mm: drop old page table APIs
x86: switch to use domheap page for page tables

Wei Liu (11):
x86/mm: rewrite virt_to_xen_l*e
x86/mm: switch to new APIs in map_pages_to_xen x86/mm: switch to new APIs in modify_xen_mappings x86_64/mm: introduce pl2e in paging_init x86_64/mm: switch to new APIs in paging_init x86_64/mm: switch to new APIs in setup_m2p_table
efi: use new page table APIs in copy_mapping
efi: switch to new APIs in EFI code x86/smpboot: add exit path for clone_mapping() x86/smpboot: switch clone_mapping() to new APIs x86/mm: drop _new suffix for page table APIs

 xen/arch/x86/efi/runtime.h |  13 +-
 xen/arch/x86/mm.c          | 247 ++++++++++++++++++++++---------------
 xen/arch/x86/setup.c       |   4 +-
 xen/arch/x86/smpboot.c     |  70 +++++++----
 xen/arch/x86/x86_64/mm.c   |  80 +++++++-----
 xen/common/efi/boot.c      |  83 ++++++++-----
 xen/common/efi/efi.h       |   3 +-
 xen/common/efi/runtime.c   |   8 +-
 xen/include/asm-x86/mm.h   |   7 +-
 xen/include/asm-x86/page.h |   5 -
 10 files changed, 314 insertions(+), 206 deletions(-)
Signature · 1 line
2.23.4