[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 4/8] xen: decouple NUMA from ACPI in Kconfig
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Wei Chen <wei.chen@xxxxxxx>
- Date: Mon, 6 Jun 2022 12:09:12 +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=V9wUoq3XTl/aE5RFIP3KDTc2vdcTUcKiAanOp0Qrrhc=; b=BOQv2qYshyelR5e2vEGcmCaURjDz3T08zosgXAkocUCFgVYSWqa4+6qkLFdWSWABCgkdejDzAdWbQUnXx9Ce35f0jGyM1vs8G2GYo2qeApYr8c6ZvuLsDY25kRNhwcnHmc1lM/E5lLVULX4icsIBe8AC6VSZHj4y6pjY/CdCnaUBidm5lMTumI5JDpIFvRag0RXcsB7RG4tdWb2IU+u/OsMyJGam7ikCBWtnScEXVpqfV55bVrokeUOUehkNY16HN7Xkx8l+BdWxjIzfjWAs8qRG4pvRAaT4BtSCQ12QII3PAm59gxB6y5z57Z4gKgM44PjpSyy0GM3hxxsFPiaa8A==
- 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=V9wUoq3XTl/aE5RFIP3KDTc2vdcTUcKiAanOp0Qrrhc=; b=T5xhqDadgerMt7tCG34LjGOA8sX5b5dvKN6Q1auOE35DUX5uoh9CIFEsov8VxfVwQZAJp44hCcr9mwf6OdqclTJS1f0r5PUssY8pVj7za9OT8XYaGXhdeibDsa+Y1i4Sn9/qfTKFzJbTvSaHDaJSgK0nBGjfulSpV69ggjrT3ADqEtwL8oTJ1/tllJVIJQlDoh6RFMMbKIHC+jmFmifEiAw1Jvr+s8Esgi+EzxJa1ElG7w76CiX9mWHiJz0c3nGTSVCOrp4Og8ZgfUrT5sS8vMd3+pwqiJoHOgySNEMbwdW28IsRqwk8yQ/IbMalPwwCPb3iMdmLyxngQhxAUC0Vbg==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=fxYbdHYa8asQcYDJv0n2fVU+OsXbw9xW4PW5kpexPlTjug+wJiIgWQTWtC7ZARpJFE+NgwUz35lJrQ0H5L5kGYAlh2h2TMCpPSS7e20NiHW8aaqM1/ZYL+47NhE8JeQF9t+C9yKj+612Vfwd67oopkYn+iqOBZgdNDUjv7Be4RK+OfHQk1og6Z3mkfI2saC6u6IR8EXGvll3y1MjKdl3P5p1IqSopGdhDtM7maw69GW/N+irPeic9O/hJmUw4cR4YSozsMFkpzznwSSqiOheSnYc4JZ1fxo+JYR2yo6T2iv8v5u5skqRct4mNObQ3lTZ7+53EFsFCuLc+597ElsZAA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dGDXm5uZphA3M0atgeqP/kup1VWg4qjSqU/GwAG1xy8TL/flRgnjwFqSF9H+xIiI23PPaWT6BckQQC0Nmb9jVnv7kDk+NInItLn4+V/7+RXHuFN8k0ASq/bdKYwq80S9aB81hwiaRpCbkU/JncQVWZqtyUo1LPY/0+d8Qv3Xha9GugXUgf+COoPu0WYIRu6gM5b3EIIhHlNqCJRuzp2CGPja1YCGn9wUEYapD1WPR7n1Zjo1/WdTQUFvl1dzV6lvLT7JZ1rw4YIZTZmBlT60a7VRKNqxrWN5lt7kHB9RT+mGbiTPotVtwb77ZY5OHBcQOGpODg6vJlyZFPe9/q7GeQ==
- Cc: <nd@xxxxxxx>, Wei Chen <wei.chen@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Jiamei Xie <jiamei.xie@xxxxxxx>
- Delivery-date: Mon, 06 Jun 2022 04:09:54 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
In current Xen code only implements x86 ACPI-based NUMA support.
So in Xen Kconfig system, NUMA equals to ACPI_NUMA. x86 selects
NUMA by default, and CONFIG_ACPI_NUMA is hardcode in config.h.
In a follow-up patch, we will introduce support for NUMA using
the device tree. That means we will have two NUMA implementations,
so in this patch we decouple NUMA from ACPI based NUMA in Kconfig.
Make NUMA as a common feature, that device tree based NUMA also
can select it.
Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
Tested-by: Jiamei Xie <jiamei.xie@xxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
v3 -> v4:
no change.
v2 -> v3:
Add Tb.
v1 -> v2:
No change.
---
xen/arch/x86/Kconfig | 2 +-
xen/arch/x86/include/asm/config.h | 1 -
xen/common/Kconfig | 3 +++
xen/drivers/acpi/Kconfig | 3 ++-
xen/drivers/acpi/Makefile | 2 +-
5 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index 06d6fbc864..1e31edc99f 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -6,6 +6,7 @@ config X86
def_bool y
select ACPI
select ACPI_LEGACY_TABLES_LOOKUP
+ select ACPI_NUMA
select ALTERNATIVE_CALL
select ARCH_SUPPORTS_INT128
select CORE_PARKING
@@ -26,7 +27,6 @@ config X86
select HAS_UBSAN
select HAS_VPCI if HVM
select NEEDS_LIBELF
- select NUMA
config ARCH_DEFCONFIG
string
diff --git a/xen/arch/x86/include/asm/config.h
b/xen/arch/x86/include/asm/config.h
index de20642524..07bcd15831 100644
--- a/xen/arch/x86/include/asm/config.h
+++ b/xen/arch/x86/include/asm/config.h
@@ -31,7 +31,6 @@
/* Intel P4 currently has largest cache line (L2 line size is 128 bytes). */
#define CONFIG_X86_L1_CACHE_SHIFT 7
-#define CONFIG_ACPI_NUMA 1
#define CONFIG_ACPI_SRAT 1
#define CONFIG_ACPI_CSTATE 1
diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index d921c74d61..d65add3fc6 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -70,6 +70,9 @@ config MEM_ACCESS
config NEEDS_LIBELF
bool
+config NUMA
+ bool
+
config STATIC_MEMORY
bool "Static Allocation Support (UNSUPPORTED)" if UNSUPPORTED
depends on ARM
diff --git a/xen/drivers/acpi/Kconfig b/xen/drivers/acpi/Kconfig
index b64d3731fb..e3f3d8f4b1 100644
--- a/xen/drivers/acpi/Kconfig
+++ b/xen/drivers/acpi/Kconfig
@@ -5,5 +5,6 @@ config ACPI
config ACPI_LEGACY_TABLES_LOOKUP
bool
-config NUMA
+config ACPI_NUMA
bool
+ select NUMA
diff --git a/xen/drivers/acpi/Makefile b/xen/drivers/acpi/Makefile
index 4f8e97228e..2fc5230253 100644
--- a/xen/drivers/acpi/Makefile
+++ b/xen/drivers/acpi/Makefile
@@ -3,7 +3,7 @@ obj-y += utilities/
obj-$(CONFIG_X86) += apei/
obj-bin-y += tables.init.o
-obj-$(CONFIG_NUMA) += numa.o
+obj-$(CONFIG_ACPI_NUMA) += numa.o
obj-y += osl.o
obj-$(CONFIG_HAS_CPUFREQ) += pmstat.o
--
2.25.1
|