From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6191BCD6E4A for ; Fri, 29 May 2026 12:46:30 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1321934.1588357 (Exim 4.92) (envelope-from ) id 1wSwbE-00085w-Cj; Fri, 29 May 2026 12:46:04 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1321934.1588357; Fri, 29 May 2026 12:46:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wSwbE-00085p-9N; Fri, 29 May 2026 12:46:04 +0000 Received: by outflank-mailman (input) for mailman id 1321934; Fri, 29 May 2026 12:46:03 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wSwbD-00085h-KL for xen-devel@lists.xenproject.org; Fri, 29 May 2026 12:46:03 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wSwbC-00B91t-Bm for xen-devel@lists.xenproject.org; Fri, 29 May 2026 14:46:02 +0200 Received: from [10.42.69.6] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a198a7b-5cb7-0a2a0a5109dd-0a2a4506aff6-44 for ; Fri, 29 May 2026 14:46:02 +0200 Received: from [160.101.131.8] (helo=na1pdmzitismtp01.tibco.com) by tlsNG-16d1c6.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a198a89-7371-0a2a45060019-a0658308925a-3 for ; Fri, 29 May 2026 14:46:02 +0200 Received: from debian.eng.citrite.net (unknown [10.113.40.46]) by na1pdmzitismtp01.tibco.com (Postfix) with ESMTP id 13F78439EC2B; Fri, 29 May 2026 08:44:56 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; none From: Bernhard Kaindl To: xen-devel@lists.xenproject.org Cc: Bernhard Kaindl , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Teddy Astie , Anthony PERARD , Michal Orzel , Julien Grall , Stefano Stabellini , Tim Deegan , Bertrand Marquis , Volodymyr Babchuk , Juergen Gross Subject: [PATCH 0/7] xen/mm: Normalize per-domain page counters, >16 TiB per domain Date: Fri, 29 May 2026 13:43:54 +0100 Message-Id: X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-16d1c6/1780058762-85B6DD75-BD203A51/0/0 X-purgate-type: clean X-purgate-size: 2730 Summary of a comment by Jan Beulich motivating this submission: > 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 Suggested-by: Jan Beulich Signed-off-by: Bernhard Kaindl 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(-) -- 2.39.5