[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 10/25] xen/domctl: wrap around XEN_DOMCTL_setnodeaffinity


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Sun, 3 Aug 2025 17:47:23 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=JjKk5H6CerbuMm5ScZNoQuw4IXN+Kw8YIwQRV0fVnL0=; b=E0Gc6dItEIq8jNgwQpbhh5+XEA0c1RuqJFN8eAadlOXOYYSq94t2+3hpOqwr8b6LBr8+crbPnUdBPI85ITe10ng7+eUDUHcFt2BrqIg/dAA9SO5p5OjSZsTKN5O4gbs2ogNOaex4WsZ7FFYcmwr3Ulr5Z6DMidzE+S7MeDsdPo7TNPXSXbUU9ic5QeElrTdpXVvqQlex7oKs6GUmmkl1Ny5cboJZpbREAX+z3Usjfxc63ne307BNZYYJNFbWQdB7yC9aSph705BNANPtZiNqXDCR5nn2VDbQVKjS6S67JB72LoiE5BeqbK1vO8/Pm3nmmMJZ3piaa6/hKqUuUVlzog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ew588I2azHyNP52LSvymHHJMI01ouCIAeK1roc713xDrAlA2W302kUVzH5atW+mtpaCQWN3r07tKgibx4S2buJSJfz2W0ot0S8MzzpzcFZyVuqtuTvA8ziwVMRxMTJnsmZFirNnJio4r96+ZeBLRZwue/cRnTF2+fhNBLw4hW/+KAWd5rtPTfaffANVk7DoXBaEnAttkgDlSRcphJP7/eeFzBHlHfZPIql2CfUX+2VOJ9/eFvEyzuqLunyO7G1g4o3ErDZo7QxVvsmc5DEhZYq5zDzzyY4LHX6HQ8iDrTZ8ZLFHML+dpAJY0jimogQwWaGbLnJOQ7ZEpNtmboIL5gA==
  • Cc: <ray.huang@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Sun, 03 Aug 2025 09:50:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Function domain_set_node_affinity() is responsible for
XEN_DOMCTL_setnodeaffinity domctl-op, and shall be wrapped with CONFIG_DOMCTL

Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
---
 xen/common/domain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/domain.c b/xen/common/domain.c
index be722c9f09..22313d761b 100644
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -1097,6 +1097,7 @@ void __init setup_system_domains(void)
 #endif
 }
 
+#ifdef CONFIG_DOMCTL
 int domain_set_node_affinity(struct domain *d, const nodemask_t *affinity)
 {
     /* Being disjoint with the system is just wrong. */
@@ -1125,6 +1126,7 @@ out:
 
     return 0;
 }
+#endif /* CONFIG_DOMCTL */
 
 /* rcu_read_lock(&domlist_read_lock) must be held. */
 static struct domain *domid_to_domain(domid_t dom)
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.