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

[PATCH 36/37] xen/arm: Provide Kconfig options for Arm to enable NUMA


  • To: <wei.chen@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Thu, 23 Sep 2021 20:02:35 +0800
  • 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=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=m+rO+v6pBMqEKBz+SCDWANix+90+cnJn/n9KVtjiQo0=; b=X4Ub9wlYfEAiyxgXGE6jEea0hMhLgm5UnB1WZw+gCRfl1XmkAZTVT8OgIbT8omuUtL24toBodBkxMYKhLr/c/ptsDY0btomrGIR55bjPIm87fbXam+QIxev/2o6OmsgFjFpSR2m3h7FIkEu2ODAoAMUsSymzFeb9h9rAzeIrjzWa130/3yR1D5Hw1bxOQPD17Kt/AFnteG1qDViA7AWQ7qNZIYfFgi2mebqZ/RNNUMY2+zE0dJaGH7DYG9VdcCIRPuRgX45JSU5OYo3Ruf9tmabi4h9WOY3+tryV2qnw2X6o0ziZoNIEDT3Zy1Nw3fLviiXjd9Hl9A7dsrOSpo7/ig==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=APOBonax8lrawm65/Zr9s2OdC15waGv8jn1G9Fpf94ySafllh3yw3fwYmZcucoFxoJeqpyWuOl0ln+4723I7aJWFUUIERxspuRw5S47tk1kAzUI3hqVy6zqv+YJNe7+ondutGUVpx+/SedaZi6gHfsOqCBtju0PuEdTrDTSYus+2zb+uZdM7MU0dzuj0ZNy1QI5FRe+QSDMvcbVPYRTd6AAZsCT1b0bxHsJwJPaS6Q1hBkaPcPtQ9ldaR0i8nD2hmH6TWSxHi7Xb0KeRbHvgZOESTC1WBYlWa18/LZh2wUdTtlauy+dYOFMF8xFluk0g7s2OP9dNswR1eyEf5Xsg4w==
  • Cc: <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Thu, 23 Sep 2021 12:17:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true

Arm platforms support both ACPI and device tree. We don't
want users to select device tree NUMA or ACPI NUMA manually.
We hope usrs can just enable NUMA for Arm, and device tree
NUMA and ACPI NUMA can be selected depends on device tree
feature and ACPI feature status automatically. In this case,
these two kinds of NUMA support code can be co-exist in one
Xen binary. Xen can check feature flags to decide using
device tree or ACPI as NUMA based firmware.

So in this patch, we introduce a generic option:
CONFIG_ARM_NUMA for user to enable NUMA for Arm.
And one CONFIG_DEVICE_TREE_NUMA option for ARM_NUMA
to select when HAS_DEVICE_TREE option is enabled.
Once when ACPI NUMA for Arm is supported, ACPI_NUMA
can be selected here too.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
 xen/arch/arm/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 865ad83a89..ded94ebd37 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -34,6 +34,17 @@ config ACPI
          Advanced Configuration and Power Interface (ACPI) support for Xen is
          an alternative to device tree on ARM64.
 
+ config DEVICE_TREE_NUMA
+       def_bool n
+       select NUMA
+
+config ARM_NUMA
+       bool "Arm NUMA (Non-Uniform Memory Access) Support (UNSUPPORTED)" if 
UNSUPPORTED
+       select DEVICE_TREE_NUMA if HAS_DEVICE_TREE
+       ---help---
+
+         Enable Non-Uniform Memory Access (NUMA) for Arm architecutres
+
 config GICV3
        bool "GICv3 driver"
        depends on ARM_64 && !NEW_VGIC
-- 
2.25.1




 


Rackspace

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