Skip to content

Bunch of typesafe conversion

[email protected] xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 43 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17xen/x86: Introduce helpers to generate/convert the CR3 from/to a MFN/GFNxen/arch/x86/domain.c xen/arch/x86/mm.c xen/include/asm-x86/mm.h+23 -34 replies
2/17xen/x86_64: Convert do_page_walk() to use typesafe MFNxen/arch/x86/x86_64/mm.c+13 -131 reply
3/17xen/mm: Move the MM types in a separate headerxen/include/xen/mm.h xen/include/xen/mm_types.h+156 -1334 replies
4/17xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFNxen/arch/arm/acpi/domain_build.c xen/arch/arm/alternative.c xen/arch/arm/cpuerrata.c +28 more+96 -1394 replies
5/17xen/x86: Remove the non-typesafe version of pagetable_* helpersxen/arch/x86/domain.c xen/arch/x86/domctl.c xen/arch/x86/hvm/vmx/vmcs.c +11 more+70 -697 replies
6/17xen/x86: mm: Fix the comment on top put_page_from_l2e() to use 'mfn'xen/arch/x86/mm.c+1 -12 replies
7/17xen/x86: traps: Convert __page_fault_type() to use typesafe MFNxen/arch/x86/traps.c+11 -104 replies
8/17xen/x86: traps: Convert show_page_walk() to use typesafe MFNxen/arch/x86/x86_64/traps.c+21 -210 replies
9/17xen/x86: Reduce the number of use of l*e_{from, get}_pfn()xen/arch/x86/machine_kexec.c xen/arch/x86/mm.c xen/arch/x86/setup.c +1 more+18 -182 replies
10/17xen/x86: pv: Use maddr_to_mfn(...) instead of the open-coding versionxen/arch/x86/pv/grant_table.c+2 -21 reply
11/17xen/x86: nested_ept: Fix typo in the message in nept_translate_l2ga()xen/arch/x86/mm/hap/nested_ept.c+1 -11 reply
12/17xen/x86: p2m: Remove duplicate error message in p2m_pt_audit_p2m()xen/arch/x86/mm/p2m-pt.c+0 -21 reply
13/17xen/x86: p2m: Reflow P2M_PRINTK()s in p2m_pt_audit_p2m()xen/arch/x86/mm/p2m-pt.c+6 -81 reply
14/17xen/x86: mm: Re-implement set_gpfn_from_mfn() as a static inline functionxen/include/asm-x86/mm.h+13 -121 reply
15/17xen/x86: p2m: Rework printk format in audit_p2m()xen/arch/x86/mm/p2m.c+1 -21 reply
16/17xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFNxen/arch/x86/cpu/mcheck/mcaction.c xen/arch/x86/mm.c xen/arch/x86/mm/mem_sharing.c +11 more+93 -865 replies
17/17xen: Switch parameter in get_page_from_gfn to use typesafe gfnxen/arch/arm/guestcopy.c xen/arch/arm/mm.c xen/arch/x86/cpu/vpmu.c +21 more+88 -754 replies

Reviews trailers per patch

12 of 17 patches have a Reviewed-by or Acked-by.

PatchPaul DurrantHongyan XiaJan Beulich
1/17
2/17R-b
3/17
4/17R-b
5/17
6/17A-b
7/17
8/17
9/17R-b
10/17A-b
11/17A-b
12/17A-b
13/17A-b
14/17R-b
15/17A-b
16/17R-b
17/17R-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 3 reviewers.

Read the v1 thread

Cover letter [Xen-devel] [PATCH 00/17] Bunch of typesafe conversion

From: Julien Grall <[email protected]>

Hi all,

This is a collection of patches I have sent over last year but never took the opportunity to respin them. There are a few new one.

I have a couple of patches that also rename fields in the public interface to what they are supposed to contain (e.g storing a GFN in a GFN field rather than MFN). I will send it separately once I have done more build testing with them.

Cheers,

Julien Grall (17):
xen/x86: Introduce helpers to generate/convert the CR3 from/to a
MFN/GFN
xen/x86_64: Convert do_page_walk() to use typesafe MFN xen/mm: Move the MM types in a separate header
xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN xen/x86: Remove the non-typesafe version of pagetable_* helpers xen/x86: mm: Fix the comment on top put_page_from_l2e() to use 'mfn' xen/x86: traps: Convert __page_fault_type() to use typesafe MFN xen/x86: traps: Convert show_page_walk() to use typesafe MFN xen/x86: Reduce the number of use of l*e_{from, get}_pfn() xen/x86: pv: Use maddr_to_mfn(...) instead of the open-coding version xen/x86: nested_ept: Fix typo in the message in nept_translate_l2ga() xen/x86: p2m: Remove duplicate error message in p2m_pt_audit_p2m() xen/x86: p2m: Reflow P2M_PRINTK()s in p2m_pt_audit_p2m() xen/x86: mm: Re-implement set_gpfn_from_mfn() as a static inline
function
xen/x86: p2m: Rework printk format in audit_p2m()
xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN
xen: Switch parameter in get_page_from_gfn to use typesafe gfn

 xen/arch/arm/acpi/domain_build.c     |   4 -
 xen/arch/arm/alternative.c           |   4 -
 xen/arch/arm/cpuerrata.c             |   4 -
 xen/arch/arm/domain_build.c          |   4 -
 xen/arch/arm/guestcopy.c             |   2 +-
 xen/arch/arm/livepatch.c             |   4 -
 xen/arch/arm/mm.c                    |  10 +-
 xen/arch/x86/cpu/mcheck/mcaction.c   |   2 +-
 xen/arch/x86/cpu/vpmu.c              |   2 +-
 xen/arch/x86/domain.c                |  22 ++--
 xen/arch/x86/domain_page.c           |  10 +-
 xen/arch/x86/domctl.c                |  12 +--
 xen/arch/x86/hvm/dm.c                |   2 +-
 xen/arch/x86/hvm/dom0_build.c        |  20 ++--
 xen/arch/x86/hvm/domain.c            |   6 +-
 xen/arch/x86/hvm/hvm.c               |   9 +-
 xen/arch/x86/hvm/svm/svm.c           |   8 +-
 xen/arch/x86/hvm/viridian/viridian.c |  16 +--
 xen/arch/x86/hvm/vmx/vmcs.c          |   2 +-
 xen/arch/x86/hvm/vmx/vmx.c           |   6 +-
 xen/arch/x86/hvm/vmx/vvmx.c          |  14 +--
 xen/arch/x86/machine_kexec.c         |   2 +-
 xen/arch/x86/mm.c                    | 142 ++++++++++++------------
 xen/arch/x86/mm/hap/hap.c            |   2 +-
 xen/arch/x86/mm/hap/nested_ept.c     |   2 +-
 xen/arch/x86/mm/mem_sharing.c        |  20 ++--
 xen/arch/x86/mm/p2m-ept.c            |   2 +-
 xen/arch/x86/mm/p2m-pod.c            |   4 +-
 xen/arch/x86/mm/p2m-pt.c             |  39 ++++---
 xen/arch/x86/mm/p2m.c                |  71 ++++++------
 xen/arch/x86/mm/paging.c             |   4 +-
 xen/arch/x86/mm/shadow/hvm.c         |   6 +-
 xen/arch/x86/mm/shadow/multi.c       |  24 ++---
 xen/arch/x86/numa.c                  |   8 +-
 xen/arch/x86/physdev.c               |   3 +-
 xen/arch/x86/pv/descriptor-tables.c  |   6 +-
 xen/arch/x86/pv/dom0_build.c         |  20 ++--
 xen/arch/x86/pv/emul-priv-op.c       |   6 +-
 xen/arch/x86/pv/grant_table.c        |   4 +-
 xen/arch/x86/pv/mm.c                 |   2 +-
 xen/arch/x86/pv/shim.c               |   3 -
 xen/arch/x86/setup.c                 |  12 +--
 xen/arch/x86/smpboot.c               |   4 +-
 xen/arch/x86/srat.c                  |   2 +-
 xen/arch/x86/tboot.c                 |   4 +-
 xen/arch/x86/traps.c                 |  42 ++++----
 xen/arch/x86/x86_64/mm.c             |  39 +++----
 xen/arch/x86/x86_64/traps.c          |  42 ++++----
 xen/common/domain.c                  |   2 +-
 xen/common/domctl.c                  |   3 +-
 xen/common/efi/boot.c                |   7 +-
 xen/common/event_fifo.c              |  12 +--
 xen/common/grant_table.c             |   8 +-
 xen/common/memory.c                  |   4 +-
 xen/common/page_alloc.c              |  20 ++--
 xen/common/trace.c                   |  19 ++--
 xen/common/xenoprof.c                |   4 -
 xen/drivers/acpi/osl.c               |   2 +-
 xen/include/asm-arm/mm.h             |  16 +--
 xen/include/asm-arm/p2m.h            |   6 +-
 xen/include/asm-x86/grant_table.h    |   6 +-
 xen/include/asm-x86/mm.h             |  55 +++++++---
 xen/include/asm-x86/p2m.h            |  14 ++-
 xen/include/asm-x86/page.h           |  27 +++--
 xen/include/xen/domain_page.h        |   6 +-
 xen/include/xen/mm.h                 | 134 +----------------------
 xen/include/xen/mm_types.h           | 155 +++++++++++++++++++++++++++
 67 files changed, 598 insertions(+), 580 deletions(-)
 create mode 100644 xen/include/xen/mm_types.h
Signature · 7 lines
2.17.1


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