Today's Arm64 systems can reach or exceed 16 NUMA nodes, so we set the number to 64 to match with x86.
Signed-off-by: Wei Chen <wei.c...@arm.com> --- xen/include/asm-arm/numa.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xen/include/asm-arm/numa.h b/xen/include/asm-arm/numa.h index 1162c702df..b2982f9053 100644 --- a/xen/include/asm-arm/numa.h +++ b/xen/include/asm-arm/numa.h @@ -5,7 +5,15 @@ typedef u8 nodeid_t; -#if !defined(CONFIG_NUMA) +#if defined(CONFIG_NUMA) + +/* + * Same as x86, we set the max number of NUMA nodes to 64 and + * set the number of NUMA memory block number to 128. + */ +#define NODES_SHIFT 6 + +#else /* Fake one node for now. See also node_online_map. */ #define cpu_to_node(cpu) 0 -- 2.25.1