Skip to content

xen/mm: Normalize per-domain page counters, >16 TiB per domain

Bernhard Kaindl xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7xen/mm: Normalize common per-domain page counters to unsigned longxen/arch/x86/mm/p2m-pod.c xen/arch/x86/mm/shadow/common.c xen/common/grant_table.c +4 more+20 -201 reply
2/7x86/mm: Normalize X86 per-domain page counters to unsigned longxen/arch/x86/include/asm/domain.h xen/arch/x86/include/asm/hap.h xen/arch/x86/include/asm/paging.h +4 more+41 -431 reply
3/7xen/mm: Static memory: Widen assign_pages(nr) to unsigned longxen/common/page_alloc.c xen/include/xen/mm.h+5 -51 reply
4/7xen/mm: Static memory: Widen domstatic plumbing to unsigned longxen/common/device-tree/static-memory.c xen/common/page_alloc.c xen/include/xen/mm.h+3 -100 replies
5/7xen/mm: device-tree: Widen static page counts to unsigned longxen/arch/arm/include/asm/p2m.h xen/common/device-tree/dom0less-build.c xen/common/device-tree/static-memory.c +1 more+7 -80 replies
6/7xen/arch/x86/dom0_build.c: Extend the upper limit for Dom0's max_pagesxen/arch/x86/dom0_build.c+1 -11 reply
7/7tools/libs/stat/xenstat.c: Extend the "no maximum" sentinel for max_pagestools/libs/stat/xenstat.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] xen/mm: Normalize per-domain page counters, >16 TiB per domain

Summary of a comment by Jan Beulich motivating this submission:

Quoted 2 lines

Considering that systems (and hence guests) only ever get larger, we should consider to normalize per-domain page counters to unsigned long.

This series enables supporting guests >16 TiB in the future once the system support for machines >16 TiB is implemented.

1. xen/mm: Normalize common per-domain page counters to unsigned long
2. x86/mm: Normalize X86 per-domain page counters to unsigned long
3. xen/mm: Static memory: Widen assign_pages(nr) to unsigned long
4. xen/mm: Static memory: Widen domstatic plumbing to unsigned long
5. xen/mm: device-tree: Widen static page counts to unsigned long
6. xen/arch/x86/dom0_build.c: Extend the upper limit for Dom0's max_pages
7. tools/libs/stat/xenstat.c: Extend the "no maximum" sentinel for max_pages

This series is based on the NUMA claim sets v7 series:
https://lists.xen.org/archives/html/xen-devel/2026-05/msg00363.html

Bernhard Kaindl (7):
xen/mm: Normalize common per-domain page counters to unsigned long x86/mm: Normalize X86 per-domain page counters to unsigned long xen/mm: Static memory: Widen assign_pages(nr) to unsigned long xen/mm: Static memory: Widen domstatic plumbing to unsigned long xen/mm: device-tree: Widen static page counts to unsigned long xen/arch/x86/dom0_build.c: Extend the upper limit for Dom0's max_pages tools/libs/stat/xenstat.c: Extend the "no maximum" sentinel for
max_pages

 tools/libs/stat/xenstat.c               |  2 +-
 xen/arch/arm/include/asm/p2m.h          |  2 +-
 xen/arch/x86/dom0_build.c               |  2 +-
 xen/arch/x86/include/asm/domain.h       |  6 ++--
 xen/arch/x86/include/asm/hap.h          |  4 +--
 xen/arch/x86/include/asm/paging.h       |  2 +-
 xen/arch/x86/include/asm/shadow.h       |  2 +-
 xen/arch/x86/mm/hap/hap.c               | 19 ++++++-----
 xen/arch/x86/mm/p2m-pod.c               |  2 +-
 xen/arch/x86/mm/paging.c                |  9 +++---
 xen/arch/x86/mm/shadow/common.c         | 42 ++++++++++++-------------
 xen/common/device-tree/dom0less-build.c |  2 +-
 xen/common/device-tree/static-memory.c  |  9 +-----
 xen/common/device-tree/static-shmem.c   |  9 +++---
 xen/common/grant_table.c                |  2 +-
 xen/common/keyhandler.c                 |  8 ++---
 xen/common/numa.c                       |  2 +-
 xen/common/page_alloc.c                 | 20 ++++++------
 xen/include/xen/mm.h                    |  4 +--
 xen/include/xen/sched.h                 | 16 +++++-----
 20 files changed, 77 insertions(+), 87 deletions(-)
Signature · 1 line
2.39.5