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

[PATCH v2 16/17] xen/arm: Provide Kconfig options for Arm to enable NUMA


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Tue, 10 Jan 2023 16:49:29 +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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A9xXZMbekjt/tql+kzQOe7eglF3L9li7hx3d+MOMfTs=; b=GA35AQ0XgoLhZ3XdZD0y4jXu5wM4OddFCtVmlluTg9AwFPoIc3suuBCgGAYI4HjbOj6AG1VVazA/B2ofGNXXIHCFKD6SkE55pzZqPORysHZAqCgDmNfn6QrjDJE40ZqUNxFS77KSfgb9miy1UmTfYpkTKZkuSbfsP0RLLGMBT0CpodehwuDS/fyBbGQHCaBDLrD1UTNHhWCtY1tz9L8xGcJAFY4LZDgcoqiv5j5o7VvkoF9zpfUELqkfYEaEnt8mho6pywNVF3w3zJwne83lRf5hyR8ffKONPRFebEfj2bNL+rGeNffh17N1AxyQ1VzRpHzWpR1j0eOT2TLvsmbCvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cENsEWAd+moxKaD55/XfUjNcxkB3d0km+dUiiyBnjidvB9M2rKkXh6BORZaYgRq0+3e+d9IPlSUe0PexA2S0XB6qBM9wSloOYN/WVO0y00VEPRv/6VOLFPCybf0xZSI1CwSg3wSBrKmx9hRoOWSaXHB4HnRsWivFmeIFXq/zXUrUk6w52+WzSC39xZA3DwoATN/cKIsSfk4RBsufhhXYiGw+7RXauP4Dtl2HLzu5agewHRtVwmLzEv41JfkddPWVcgFPWAgUmtpwobTDao1K3g41rIF3OpOPmMyIT2MaODJ1cqjFi7SEqUVY8G7HNYeEs1X6WyPJYgNDkPk2e64dfg==
  • 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>
  • Delivery-date: Tue, 10 Jan 2023 08:55:23 +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 users 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 users 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>
---
v1 -> v2:
1. Remove the condition of selecting DEVICE_TREE_NUMA.
---
 xen/arch/arm/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 239d3aed3c..e751ad50d1 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -39,6 +39,17 @@ config ACPI
 config ARM_EFI
        bool
 
+config ARM_NUMA
+       bool "Arm NUMA (Non-Uniform Memory Access) Support (UNSUPPORTED)" if 
UNSUPPORTED
+       depends on HAS_DEVICE_TREE
+       select DEVICE_TREE_NUMA
+       help
+         Enable Non-Uniform Memory Access (NUMA) for Arm architecutres
+
+config DEVICE_TREE_NUMA
+       bool
+       select NUMA
+
 config GICV3
        bool "GICv3 driver"
        depends on !NEW_VGIC
-- 
2.25.1




 


Rackspace

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