|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 00/24] Introduce Device Tree based NUMA support for ARM Xen
Hello,
Regarding the configuration, we now select CONFIG_ARM_NUMA when
using NUMA on ARM Xen. Eventually, it would be great to have NUMA
enabled by default, just like it is on x86.
I also fixed a bug in the DomU memory layout creation where an x86
dependency was breaking memory allocation for vNUMA nodes. With
this fix, it correctly references the domain's vNUMA node
information and performs NUMA-aware memory allocation.
For now, I've applied a simple fix using #ifdef, but I'm wondering
if we should make this more generic.
Additionally, some code borrowed from the Linux kernel doesn't
strictly follow the Xen coding style. I've left it as-is for now
because I want to avoid creating unnecessary diffs against the
original Linux kernel code.
Changes in v2:
- Fix vNUMA memory allocation algorithm to support ARM
- Allocate vNUMA memory from the associated pNUMA memory
- Include the XSM Policy module size in the required memory
calculation for Dom0 Bank 0.
- Enforce a minimum chunk size of 4MB during Dom0 memory
allocation.
- Define the cpu_to_core() and cpu_to_socket() macros in
cpu-topology.h instead of processor.h, as processor.h should
strictly focus on processor hardware information.
- Make cpu_nr_siblings() an architecture-specific function.
- Refine the code to conform with the Xen coding style guidelines.
Thanks,
Hirokazu Takahashi
Hirokazu Takahashi (24):
xen/device-tree: Initial framework for Device Tree NUMA support
xen/arm: NUMA helper functions via Device Tree helpers
xen/arm: Introduce CONFIG_DEVICE_TREE_NUMA config option
xen/arm: Configure NUMA affinity for populated memory banks
xen/arm: Map populated CPUs to their respective NUMA nodes
xen/device-tree: Read NUMA node distance from Device Tree
'distance-map'
xen/device-tree: Parse 'cpu-map' node for CPU topology exploration
xen/sched: Link CPU topology to scheduler and display via xl info
xen/sched: Make cpu_nr_siblings() architecture-specific
xen/common: Allow building ARM32 Xen with CONFIG_NUMA
tools/libxl: Fix vNUMA memory allocation algorithm to support ARM
tools/libs/guest: Allocate vNUMA memory from associated pNUMA nodes
tools/libxl: Add 'numa-node-id' property to DomU memory nodes
tools/libxl: Add 'numa-node-id' property to DomU CPU nodes
tools/libxl: Create 'distance-map' node in DomU Device Tree
xen/arm: Introduce dom0_nodes boot command option
xen/arm: Set Domain-0 node affinity from dom0_nodes option
xen/arm: Reflect physical NUMA node IDs in Dom0 memory DT nodes
xen/arm: Balance Dom0 vCPU assignment across NUMA nodes
xen/arm: Export Dom0 vCPU-to-NUMA node mapping to Device Tree
xen/arm: Generate distance-map node for Dom0 Device Tree
xen/arm: Balance Dom0 memory allocation across allowed NUMA nodes
xen/arm: Use dedicated function for Static SHM Device Tree creation
xen/arm: Support numa and dom0_nodes boot options
docs/misc/xen-command-line.pandoc | 9 +-
tools/libs/guest/xg_dom_arm.c | 62 +++-
tools/libs/light/libxl_arm.c | 103 ++++++-
tools/libs/light/libxl_vnuma.c | 13 +-
xen/arch/arm/Kconfig | 9 +
xen/arch/arm/Makefile | 1 +
xen/arch/arm/domain_build.c | 428 +++++++++++++++++++-------
xen/arch/arm/include/asm/numa.h | 19 ++
xen/arch/arm/include/asm/processor.h | 4 -
xen/arch/arm/numa.c | 62 ++++
xen/arch/arm/setup.c | 4 +
xen/arch/arm/smpboot.c | 35 ++-
xen/arch/x86/include/asm/processor.h | 1 +
xen/common/Kconfig | 7 +
xen/common/device-tree/Makefile | 2 +
xen/common/device-tree/bootinfo-fdt.c | 8 +
xen/common/device-tree/cpu-topology.c | 360 ++++++++++++++++++++++
xen/common/device-tree/domain-build.c | 99 +++---
xen/common/device-tree/numa.c | 142 +++++++++
xen/common/numa.c | 2 +-
xen/common/sched/credit2.c | 22 +-
xen/common/sysctl.c | 1 +
xen/include/xen/bootinfo.h | 37 +++
xen/include/xen/cpu-topology.h | 53 ++++
xen/include/xen/dt-numa.h | 31 ++
xen/include/xen/fdt-domain-build.h | 2 +
26 files changed, 1310 insertions(+), 206 deletions(-)
create mode 100644 xen/arch/arm/include/asm/numa.h
create mode 100644 xen/arch/arm/numa.c
create mode 100644 xen/common/device-tree/cpu-topology.c
create mode 100644 xen/common/device-tree/numa.c
create mode 100644 xen/include/xen/cpu-topology.h
create mode 100644 xen/include/xen/dt-numa.h
--
2.43.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |