Skip to content

RFC x86: use domheap page for xen page tables

Wei Liu xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest55 patches 43 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/55x86/mm: defer clearing page in virt_to_xen_lXexen/arch/x86/mm.c+3 -32 replies
2/55x86: move some xen mm function declarationsxen/include/asm-x86/mm.h xen/include/asm-x86/page.h+5 -51 reply
3/55x86: introduce a new set of APIs to manage Xen page tablesxen/arch/x86/mm.c xen/include/asm-x86/mm.h+45 -50 replies
4/55x86/mm: introduce l{1, 2}t local variables to map_pages_to_xenxen/arch/x86/mm.c+42 -335 replies
5/55x86/mm: introduce l{1, 2}t local variables to modify_xen_mappingsxen/arch/x86/mm.c+38 -301 reply
6/55x86/mm: map_pages_to_xen should have one exit pathxen/arch/x86/mm.c+27 -72 replies
7/55x86/mm: add an end_of_loop label in map_pages_to_xenxen/arch/x86/mm.c+5 -44 replies
8/55x86/mm: make sure there is one exit path for modify_xen_mappingsxen/arch/x86/mm.c+15 -30 replies
9/55x86/mm: add an end_of_loop label in modify_xen_mappingsxen/arch/x86/mm.c+8 -70 replies
10/55x86/mm: change pl2e to l2t in virt_to_xen_l2exen/arch/x86/mm.c+7 -70 replies
11/55x86/mm: change pl1e to l1t in virt_to_xen_l1exen/arch/x86/mm.c+7 -70 replies
12/55x86/mm: change pl3e to l3t in virt_to_xen_l3exen/arch/x86/mm.c+7 -70 replies
13/55x86/mm: rewrite virt_to_xen_l3exen/arch/x86/mm.c+48 -133 replies
14/55x86/mm: rewrite xen_to_virt_l2exen/arch/x86/mm.c+37 -92 replies
15/55x86/mm: rewrite virt_to_xen_l1exen/arch/x86/domain_page.c xen/arch/x86/mm.c+31 -90 replies
16/55x86/mm: switch to new APIs in map_pages_to_xenxen/arch/x86/mm.c+22 -92 replies
17/55x86/mm: drop lXe_to_lYe invocations in map_pages_to_xenxen/arch/x86/mm.c+29 -111 reply
18/55x86/mm: switch to new APIs in modify_xen_mappingsxen/arch/x86/mm.c+22 -92 replies
19/55x86/mm: drop lXe_to_lYe invocations from modify_xen_mappingsxen/arch/x86/mm.c+19 -90 replies
20/55x86/mm: switch to new APIs in arch_init_memoryxen/arch/x86/mm.c+9 -60 replies
21/55x86_64/mm: introduce pl2e in paging_initxen/arch/x86/x86_64/mm.c+10 -81 reply
22/55x86_64/mm: switch to new APIs in paging_initxen/arch/x86/x86_64/mm.c+36 -120 replies
23/55x86_64/mm: drop l4e_to_l3e invocation from paging_initxen/arch/x86/x86_64/mm.c+5 -22 replies
24/55x86_64/mm.c: remove code that serves no purpose in setup_m2p_tablexen/arch/x86/x86_64/mm.c+0 -20 replies
25/55x86_64/mm: introduce pl2e in setup_m2p_tablexen/arch/x86/x86_64/mm.c+5 -41 reply
26/55x86_64/mm: switch to new APIs in setup_m2p_tablexen/arch/x86/x86_64/mm.c+9 -50 replies
27/55x86_64/mm: drop lXe_to_lYe invocations from setup_m2p_tablexen/arch/x86/x86_64/mm.c+12 -42 replies
28/55efi: use new page table APIs in copy_mappingxen/common/efi/boot.c+11 -50 replies
29/55efi: avoid using global variable in copy_mappingxen/common/efi/boot.c+6 -50 replies
30/55efi: use new page table APIs in efi_init_memoryxen/common/efi/boot.c+27 -120 replies
31/55efi: add emacs block to boot.cxen/common/efi/boot.c+10 -02 replies
32/55efi: switch EFI L4 table to use new APIsxen/arch/x86/efi/runtime.h xen/common/efi/boot.c xen/common/efi/efi.h +1 more+21 -104 replies
33/55x86/smpboot: add emacs blockxen/arch/x86/smpboot.c+10 -00 replies
34/55x86/smpboot: clone_mapping should have one exit pathxen/arch/x86/smpboot.c+28 -70 replies
35/55x86/smpboot: switch pl3e to use new APIs in clone_mappingxen/arch/x86/smpboot.c+15 -70 replies
36/55x86/smpboot: switch pl2e to use new APIs in clone_mappingxen/arch/x86/smpboot.c+12 -60 replies
37/55x86/smpboot: switch pl1e to use new APIs in clone_mappingxen/arch/x86/smpboot.c+12 -60 replies
38/55x86/smpboot: drop lXe_to_lYe invocations from cleanup_cpu_root_pgtxen/arch/x86/smpboot.c+11 -50 replies
39/55x86: switch root_pgt to mfn_t and use new APIsxen/arch/x86/domain.c xen/arch/x86/domain_page.c xen/arch/x86/mm.c +4 more+44 -202 replies
40/55x86/shim: map and unmap page tables in replace_va_mappingxen/arch/x86/pv/shim.c+15 -50 replies
41/55x86_64/mm: map and unmap page tables in m2p_mappedxen/arch/x86/x86_64/mm.c+15 -71 reply
42/55x86_64/mm: map and unmap page tables in share_hotadd_m2p_tablexen/arch/x86/x86_64/mm.c+23 -81 reply
43/55x86_64/mm: map and unmap page tables in destroy_compat_m2p_mappingxen/arch/x86/x86_64/mm.c+7 -20 replies
44/55x86_64/mm: map and unmap page tables in destroy_m2p_mappingxen/arch/x86/x86_64/mm.c+14 -40 replies
45/55x86_64/mm: map and unmap page tables in setup_compat_m2p_tablexen/arch/x86/x86_64/mm.c+7 -20 replies
46/55x86_64/mm: map and unmap page tables in cleanup_frame_tablexen/arch/x86/x86_64/mm.c+17 -70 replies
47/55x86_64/mm: map and unmap page tables in subarch_init_memoryxen/arch/x86/x86_64/mm.c+23 -80 replies
48/55x86_64/mm: map and unmap page tables in subarch_memory_opxen/arch/x86/x86_64/mm.c+10 -50 replies
49/55x86/smpboot: remove lXe_to_lYe in cleanup_cpu_root_pgtxen/arch/x86/smpboot.c+9 -30 replies
50/55x86/pv: properly map and unmap page tables in mark_pv_pt_pages_rdonlyxen/arch/x86/pv/dom0_build.c+23 -120 replies
51/55x86/pv: properly map and unmap page table in dom0_construct_pvxen/arch/x86/pv/dom0_build.c+5 -10 replies
52/55x86: remove lXe_to_lYe in __start_xenxen/arch/x86/setup.c+8 -20 replies
53/55x86/mm: drop old page table APIsxen/arch/x86/mm.c xen/include/asm-x86/mm.h xen/include/asm-x86/page.h+0 -230 replies
54/55x86: switch to use domheap page for page tablesxen/arch/x86/mm.c+7 -60 replies
55/55x86/mm: drop _new suffix from page table APIsxen/arch/x86/domain.c xen/arch/x86/domain_page.c xen/arch/x86/efi/runtime.h +8 more+246 -2460 replies

Reviews trailers per patch

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

PatchJan BeulichStefan Nuernberger
SeriesT-b
1/55
2/55A-b
3/55
4/55
5/55
6/55
7/55
8/55
9/55
10/55
11/55
12/55
13/55
14/55
15/55
16/55
17/55
18/55
19/55
20/55
21/55
22/55
23/55
24/55
25/55
26/55
27/55
28/55
29/55
30/55
31/55
32/55
33/55
34/55
35/55
36/55
37/55
38/55
39/55
40/55
41/55
42/55
43/55
44/55
45/55
46/55
47/55
48/55
49/55
50/55
51/55
52/55
53/55
54/55
55/55

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 RFC 00/55] x86: use domheap page for xen page tables

This series switches xen page tables from xenheap page to domheap page.

This is required so that when we implement xenheap on top of vmap there won't be a loop.

It is done in roughly three steps:

1. Introduce a new set of APIs, implement the old APIs on top of the new ones. New APIs still use xenheap pages.
2. Switch each site which manipulate page tables to use the new APIs.
3. Switch new APIs to use domheap page.

You can find the series at:

https://xenbits.xen.org/git-http/people/liuw/xen.git xen-pt-allocation-1

Wei.

Wei Liu (55):
x86/mm: defer clearing page in virt_to_xen_lXe
x86: move some xen mm function declarations
x86: introduce a new set of APIs to manage Xen page tables x86/mm: introduce l{1,2}t local variables to map_pages_to_xen x86/mm: introduce l{1,2}t local variables to modify_xen_mappings x86/mm: map_pages_to_xen should have one exit path
x86/mm: add an end_of_loop label in map_pages_to_xen x86/mm: make sure there is one exit path for modify_xen_mappings x86/mm: add an end_of_loop label in modify_xen_mappings x86/mm: change pl2e to l2t in virt_to_xen_l2e
x86/mm: change pl1e to l1t in virt_to_xen_l1e
x86/mm: change pl3e to l3t in virt_to_xen_l3e
x86/mm: rewrite virt_to_xen_l3e
x86/mm: rewrite xen_to_virt_l2e
x86/mm: rewrite virt_to_xen_l1e
x86/mm: switch to new APIs in map_pages_to_xen
x86/mm: drop lXe_to_lYe invocations in map_pages_to_xen x86/mm: switch to new APIs in modify_xen_mappings
x86/mm: drop lXe_to_lYe invocations from modify_xen_mappings x86/mm: switch to new APIs in arch_init_memory
x86_64/mm: introduce pl2e in paging_init
x86_64/mm: switch to new APIs in paging_init
x86_64/mm: drop l4e_to_l3e invocation from paging_init x86_64/mm.c: remove code that serves no purpose in setup_m2p_table x86_64/mm: introduce pl2e in setup_m2p_table
x86_64/mm: switch to new APIs in setup_m2p_table x86_64/mm: drop lXe_to_lYe invocations from setup_m2p_table
efi: use new page table APIs in copy_mapping
efi: avoid using global variable in copy_mapping
efi: use new page table APIs in efi_init_memory
efi: add emacs block to boot.c
efi: switch EFI L4 table to use new APIs
x86/smpboot: add emacs block
x86/smpboot: clone_mapping should have one exit path x86/smpboot: switch pl3e to use new APIs in clone_mapping x86/smpboot: switch pl2e to use new APIs in clone_mapping x86/smpboot: switch pl1e to use new APIs in clone_mapping x86/smpboot: drop lXe_to_lYe invocations from cleanup_cpu_root_pgt
x86: switch root_pgt to mfn_t and use new APIs
x86/shim: map and unmap page tables in replace_va_mapping x86_64/mm: map and unmap page tables in m2p_mapped x86_64/mm: map and unmap page tables in share_hotadd_m2p_table x86_64/mm: map and unmap page tables in destroy_compat_m2p_mapping x86_64/mm: map and unmap page tables in destroy_m2p_mapping x86_64/mm: map and unmap page tables in setup_compat_m2p_table x86_64/mm: map and unmap page tables in cleanup_frame_table x86_64/mm: map and unmap page tables in subarch_init_memory x86_64/mm: map and unmap page tables in subarch_memory_op x86/smpboot: remove lXe_to_lYe in cleanup_cpu_root_pgt x86/pv: properly map and unmap page tables in mark_pv_pt_pages_rdonly x86/pv: properly map and unmap page table in dom0_construct_pv
x86: remove lXe_to_lYe in __start_xen
x86/mm: drop old page table APIs
x86: switch to use domheap page for page tables
x86/mm: drop _new suffix from page table APIs

 xen/arch/x86/domain.c           |  15 +-
 xen/arch/x86/domain_page.c      |  12 +-
 xen/arch/x86/efi/runtime.h      |  12 +-
 xen/arch/x86/mm.c               | 485 ++++++++++++++++++++++++++++------------
 xen/arch/x86/pv/dom0_build.c    |  41 ++--
 xen/arch/x86/pv/domain.c        |   2 +-
 xen/arch/x86/pv/shim.c          |  20 +-
 xen/arch/x86/setup.c            |  10 +-
 xen/arch/x86/smpboot.c          | 171 ++++++++++----
 xen/arch/x86/x86_64/mm.c        | 265 +++++++++++++++-------
 xen/common/efi/boot.c           |  84 +++++--
 xen/common/efi/efi.h            |   3 +-
 xen/common/efi/runtime.c        |   8 +-
 xen/include/asm-x86/mm.h        |  16 ++
 xen/include/asm-x86/page.h      |  10 -
 xen/include/asm-x86/processor.h |   1 -
 16 files changed, 820 insertions(+), 335 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel