[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 5/8] xen/arm: use !CONFIG_NUMA to keep fake NUMA API
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Wei Chen <wei.chen@xxxxxxx>
- Date: Mon, 6 Jun 2022 12:09:13 +0800
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mmWNLdXhXdHZRodNywRZ0AluYyoEUalbdzqUNWlHEjU=; b=FO48yEIw7nOe/WhMducvyy5OQaZS255AmNQdAmQ41zDDKnoYY+eKGUULKRMUekT3kpBbesHHRb6Fqh+wV43yze9dTqwcVeu5IudLeDTRhed2gPdlQvzZJCgW5n1S25z99U4OHeFkeNm1Qn0HqOqH/ynHvyzKguaNb/z7P688uweYdvsKgh8XxqRoqRHXS20rk4JAQvKdjWvCPsuEHA/2tgOQKg+FngmbJ6XSQbpZfAtEI5UK8aghN101AdULDjQt86xdIbF3gbgvbak9r95AcqjrgiqTQwBZiqcqno2K1TiIn05FGSsvVAiC+4KAqNXBnQH0JS4XbmzeDWr9W/9Jvg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mmWNLdXhXdHZRodNywRZ0AluYyoEUalbdzqUNWlHEjU=; b=iIFguqocLwr74I8CijEwvVmWGw5q46v9hgzrx9lSqqrtJWe7q/BebwBl8CfuemrZEcJRuSbAmhf3Bm7Xc9TKcx0xPPbpB8bNUPQy6sHfg7UTgoeyehkTLwt5jZLnywtsAtTOgjlWe4GiyIW50PkesFkFRRBvEifMzjDqvQ6a43fs1JJoL0EZHg/9R51CMCbciTLBl52Tp2Zbr+gO+/0gKjDZcfQk5tmBflW4ArkmXHPT7b3MEk++lALWBknSMvrdmYjxkA8ZYN/9rCO/GT+B0hOODGGtluz+GIVmgCw5wauhwtSE/ZxmosO5jiBhgL8kzS7hac0qlROppP6gf+l4Uw==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=bq8vLUcWh3JhP8o399uCZLIUC4NA0PnujoK2ZiSQ/7dttnZCWcd/xx1GE2FO/4DOm4u1NnF1xwvwZovlToDKm+k7DyoP39fTOBC72mgMTRZ01HZvbIDMMSb1za5TTxolQ/Jr4ObBKzeUzhmBuG8gM5PZX3gUJmTtK3FjO2B4gprzy0+sBDxAFuqCWpaIDK/T+fSxMxIRp/GE8tikAhhMH2PHH7M26gJTx/GQi7hyTE5WkYTMLS52o5nQ34B2u4I35i+wjz3mQMzZjcO1nnpthGKXmoZ7dhl3FKRH7ogXA36tt62SxwdP4XDRut82h4xCwIaqg1/3XZmQ+wVlvQWi6Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iK7r0ye4H/mJT9pVfduEvLMivP3VhWa9cdj08q3xB6DRKvQw0+NgaGY7Lan0S2tfqV1cN38zmpLo+scEujmLuyB0XFY1oiW8BuZ08/xhTqLPFwrEqJUMKMXFudijqrJndDsh/AFKzFaOkdMmchVv9nhstMw8w85BCwQWv1Bw76NMTAvilCVjOCLpqFdTv1DEKlZAltbWDcqH3+VnzZNosXADyCe++zY+wxvu3cR5D3OxCQMVS1mUfD3pZZM8n2zO9DpMwc+KlA18DAiTq0cw6H1ywmzrtjGZIizuKOCIPHEKD/YY9/3WVjYLp4htRCFPXxdr1s2forAhRJuy3wYMRg==
- Cc: <nd@xxxxxxx>, Wei Chen <wei.chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Jiamei Xie <jiamei.xie@xxxxxxx>
- Delivery-date: Mon, 06 Jun 2022 04:10:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
We have introduced CONFIG_NUMA in a previous patch. And this
option is enabled only on x86 at the current stage. In a follow
up patch, we will enable this option for Arm. But we still
want users to be able to disable the CONFIG_NUMA via Kconfig. In
this case, keep the fake NUMA API, will make Arm code still
able to work with NUMA aware memory allocation and scheduler.
Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
Tested-by: Jiamei Xie <jiamei.xie@xxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
v3 -> v4:
no change
v2 -> v3:
Add Tb.
v1 -> v2:
No change.
---
xen/arch/arm/include/asm/numa.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xen/arch/arm/include/asm/numa.h b/xen/arch/arm/include/asm/numa.h
index e4c4d89192..268a9db055 100644
--- a/xen/arch/arm/include/asm/numa.h
+++ b/xen/arch/arm/include/asm/numa.h
@@ -5,6 +5,8 @@
typedef u8 nodeid_t;
+#ifndef CONFIG_NUMA
+
/* Fake one node for now. See also node_online_map. */
#define cpu_to_node(cpu) 0
#define node_to_cpumask(node) (cpu_online_map)
@@ -24,6 +26,9 @@ extern mfn_t first_valid_mfn;
#define node_spanned_pages(nid) (max_page - mfn_x(first_valid_mfn))
#define node_start_pfn(nid) (mfn_x(first_valid_mfn))
#define __node_distance(a, b) (20)
+
+#endif
+
#define arch_want_default_dmazone() (false)
#endif /* __ARCH_ARM_NUMA_H */
--
2.25.1
|