Skip to content

x86/mm: large parts of P2M code and struct p2m_domain are HVM-only

Jan Beulich xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 11 repliesIn review
  2. v116 patches 33 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14x86/P2M: rename p2m_remove_page()xen/arch/x86/mm/p2m.c+5 -51 reply
2/14x86/P2M: introduce p2m_{add,remove}_page()xen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/grant_table.c xen/arch/x86/hvm/ioreq.c +2 more+36 -262 replies
3/14x86/mm: move guest_physmap_{add,remove}_page()xen/arch/x86/mm/Makefile xen/arch/x86/mm/p2m.c xen/arch/x86/mm/physmap.c +1 more+86 -630 replies
4/14x86/mm: split set_identity_p2m_entry() into PV and HVM partsxen/arch/x86/include/asm/p2m.h xen/arch/x86/mm/p2m.c xen/arch/x86/mm/physmap.c +2 more+40 -244 replies
5/14x86/P2M: p2m_{alloc,free}_ptp() and p2m_alloc_table() are HVM-onlyxen/arch/x86/include/asm/p2m.h xen/arch/x86/mm/p2m.c xen/arch/x86/mm/shadow/common.c +1 more+22 -70 replies
6/14x86/P2M: PoD, altp2m, and nested-p2m are HVM-onlyxen/arch/x86/include/asm/p2m.h xen/arch/x86/mm.c xen/arch/x86/mm/p2m-pod.c +2 more+42 -61 reply
7/14x86/P2M: split out init/teardown functionsxen/arch/x86/include/asm/hvm/vmx/vmx.h xen/arch/x86/mm/Makefile xen/arch/x86/mm/altp2m.c +6 more+348 -2690 replies
8/14x86/P2M: p2m_get_page_from_gfn() is HVM-onlyxen/arch/x86/mm/guest_walk.c xen/arch/x86/mm/p2m.c+5 -30 replies
9/14x86/P2M: derive HVM-only variant from __get_gfn_type_access()xen/arch/x86/hvm/svm/svm.c xen/arch/x86/include/asm/p2m.h xen/arch/x86/mm/mem_access.c +2 more+47 -390 replies
10/14x86/p2m: re-arrange {,__}put_gfn()xen/arch/x86/hvm/hvm.c xen/arch/x86/include/asm/p2m.h xen/arch/x86/mm/hap/nested_hap.c +1 more+20 -210 replies
11/14shr_pages field is MEM_SHARING-onlyxen/arch/x86/mm/p2m-basic.c xen/common/domctl.c xen/common/keyhandler.c +1 more+19 -61 reply
12/14paged_pages field is MEM_PAGING-onlyxen/arch/x86/mm/mem_sharing.c xen/arch/x86/mm/p2m.c xen/common/domctl.c +2 more+14 -20 replies
13/14x86/P2M: p2m.c is HVM-onlyxen/arch/x86/mm/Makefile xen/arch/x86/mm/p2m-basic.c xen/arch/x86/mm/p2m.c+3 -110 replies
14/14x86/P2M: the majority for struct p2m_domain's fields are HVM-onlyxen/arch/x86/include/asm/p2m.h xen/arch/x86/mm.c xen/arch/x86/mm/mm-locks.h +3 more+49 -270 replies

Reviews trailers per patch

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

PatchPaul DurrantGeorge DunlapKevin TianTamas K LengyelRoger Pau Monné
1/14R-b
2/14R-b R-b
3/14R-b
4/14R-b R-b R-b
5/14R-b R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b R-b
12/14R-b R-b
13/14R-b
14/14R-b R-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 v2 thread

Cover letter [PATCH v2 00/14] x86/mm: large parts of P2M code and struct p2m_domain are HVM-only

The primary goal of this series is to leave p2m.c with, as its leading comment suggests, just code for "physical-to-machine mappings for automatically-translated domains". This requires splitting a few functions, with their non-HVM parts moved elsewhere.

There aren't many changes in v2, mostly from re-basing. See individual patches for details.

01: x86/P2M: rename p2m_remove_page()
02: x86/P2M: introduce p2m_{add,remove}_page()
03: x86/mm: move guest_physmap_{add,remove}_page()
04: x86/mm: split set_identity_p2m_entry() into PV and HVM parts 05: x86/P2M: p2m_{alloc,free}_ptp() and p2m_alloc_table() are HVM-only 06: x86/P2M: PoD, altp2m, and nested-p2m are HVM-only
07: x86/P2M: split out init/teardown functions
08: x86/P2M: p2m_get_page_from_gfn() is HVM-only
09: x86/P2M: derive a HVM-only variant from __get_gfn_type_access() 10: x86/p2m: re-arrange {,__}put_gfn()
11: shr_pages field is MEM_SHARING-only
12: paged_pages field is MEM_PAGING-only
13: x86/P2M: p2m.c is HVM-only
14: x86/P2M: the majority for struct p2m_domain's fields are HVM-only

Jan