Skip to content

use new API for Xen page tables

Hongyan Xia xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 2 repliesIn review
  2. v34 patches 2 repliesSuperseded
  3. v25 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches13 repliesSuperseded

Changes in v4 from the cover letter

- use _ suffix instead of prefix in macros.
- use normal unmap_domain_page() for variable right before end-of-scope.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/shim: map and unmap page tables in replace_va_mappingxen/arch/x86/pv/shim.c xen/include/asm-x86/page.h+24 -41 reply
2/4x86_64/mm: map and unmap page tables in m2p_mappedxen/arch/x86/x86_64/mm.c+6 -70 replies
3/4x86_64/mm: map and unmap page tables in share_hotadd_m2p_tablexen/arch/x86/x86_64/mm.c+6 -60 replies
4/4x86_64/mm: map and unmap page tables in destroy_m2p_mappingxen/arch/x86/x86_64/mm.c+12 -71 reply

Reviews trailers per patch

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

PatchJan Beulich
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/4] use new API for Xen page tables

From: Hongyan Xia <[email protected]>

This small series is basically just rewriting functions using the new API to map and unmap PTEs. Each patch is independent.

Apart from mapping and unmapping page tables, no other functional change intended.

---
Changed in v4:
- use _ suffix instead of prefix in macros.
- use normal unmap_domain_page() for variable right before end-of-scope.

Changed in v3:
- address all comments in v2.
- drop patch 4, since other clean-ups will make it unnecessary.

Changed in v2:
- I kept UNMAP_DOMAIN_PAGE() for now in v2, but I if people say in some cases it is an overkill and unmap_domain_page() should be used, I am okay with that and can make the change.
- code cleanup and style fixes.
- unmap as early as possible.

Wei Liu (4):
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_m2p_mapping

 xen/arch/x86/pv/shim.c     |  9 ++++----
 xen/arch/x86/x86_64/mm.c   | 44 +++++++++++++++++++++-----------------
 xen/include/asm-x86/page.h | 19 ++++++++++++++++
 3 files changed, 48 insertions(+), 24 deletions(-)
Signature · 1 line
2.24.1.AMZN