[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 17/24] xen/arm: Set Domain-0 node affinity from dom0_nodes option
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
- Date: Mon, 1 Jun 2026 07:47:47 +0900
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=valinux.co.jp; dmarc=pass action=none header.from=valinux.co.jp; dkim=pass header.d=valinux.co.jp; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=blu4oOd7tpGPVUBQPLctq+uqUO6TNkR+RChL3tWjD80=; b=Qh16dJHsz0wWcE0ZzY+1DmXKRyQMfbCG9QlZY0Dg6Os6CJ0IjHV+UQUlrdgn2JS0BhM6jVzRzifx6VEYSl14WDCLG4mbB+F8Vny2uepS8mO5u5bMVLUzgw5suG9Ez6MwJen87N39vda9odOgctHnSS9sGXDarzwujkyIjQPc/QOPl58qgMZM1UVxWLbRXOvvFVCp79Z05QVAJh+IV9+LsBZbAarbCyMGelB8pIgxsYUS8RUSzLzhCi/MWyti1fnmfYwnnFmhCAKsCL1SgnT0qoKjtkgu6FPRnw6kIdU0wWL0AmFT35XjuzwgXPfAFtrBsgVqo5H481FwZGFbggdQ8A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=c6Q5mtityzBd7qYg2foubso2g4yc7t8YIdZFfKJuF2WOk/oYQyadIadSnb96FNNNc2u4+4laOpP1s4/BJKiQRZXvU2sbXKOc/wGygTSjAR1kev1cCn0MEPf1W5dzSI3glWSqpTUn2kEnboegPmSEehE1IpqJuwBwpxx5lsRfj/s3mFyzmOSPkNF9q441fYb7lTw65NkIeBu/eEDYFAurgt5vgsQoxPRn+dFLjW5O7/q0ZmmFhwWbWbdWivUJ5yt11TcCY2rim4TwN4jTL8hG1rFTmL8e/bEM3zJlcQRdJz+9sWNCmDMwuDaQlUjLvYFgv+yxurD7irL4hTHTiDFjPw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=valinux.co.jp header.i="@valinux.co.jp" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp;
- Cc: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Sun, 31 May 2026 22:48:38 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Set Domain-0's node affinity to run on the NUMA nodes specified via the
'dom0_nodes' boot command line option. If the option is omitted, the
node affinity is configured to use all available NUMA nodes managed by
Xen. When Xen is built with CONFIG_NUMA disabled, the node affinity
falls back to using only NUMA node 0.
---
xen/arch/arm/domain_build.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index f4187512b0..2518909ed0 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -2027,6 +2027,13 @@ void __init create_dom0(void)
if ( llc_coloring_enabled && (rc = dom0_set_llc_colors(dom0)) )
panic("Error initializing LLC coloring for %pd (rc = %d)\n", dom0, rc);
+ nodes_and(dom0_nodes, dom0_nodes, node_online_map);
+ if ( nodes_empty(dom0_nodes) )
+ dom0_nodes = node_online_map;
+
+ dom0->node_affinity = dom0_nodes;
+ dom0->auto_node_affinity = false;
+
if ( vcpu_create(dom0, 0) == NULL )
panic("Error creating %pdv0\n", dom0);
--
2.43.0
|