[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/4] xen/arm: mpu: Implement a dummy enable_secondary_cpu_mm
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Date: Wed, 18 Sep 2024 18:51:02 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wUkJQVVsHgBZXjNhol8PNwGMPM65o0An2CcOed5wQIE=; b=gCXlcDJBgfT/6BeET1AInf+nyWwvm/Crzn/vFL4v17ybR2S65jfLNpRjDl8jrLFpmtqTG/cro4a/zcN1W7xfSim4g7IGo+eYPvjW4AJ9krmVEVSbbFOQlXe3tlXZMPD7j76pEcufnE0aGeNAQdU2CkWtySEMYPsRo4CJP1OvqlnG1CFeV0O7LLQSKEOo+N/z0GuRdU4exqRAGWhERxb5dLrshtVAzKvig4MvhMMvnJPJ9x9vGU1vT8XYOs1h6n8zytXwy9jIl4iOGNMDKJ1LvuSj11eCQXJ40ZSYG5oyXWQeHsOhQru+FUlcZ6rwsiXSNCKtjTrPNMbHEZCjslba8Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x4MaueASzuMwXdU1MifHtTdhm6nvmv8mfxP4NEL99ABzzCCgknBOTg06ry7L8A4xM0B8Ge0DHmTEwo39LlIzPxVkwM+raZOo0rupkSDVIMFjLxo3NfjSR2x6uqhVCQXTO/fpyveQLJ9BXvIP7Z+SX967D+bbjD2Vk83vaC7hRB36xw4IupIhpe0SJQgZsmACD0X+qMXDILH/9W+e7ktZJ5KrmthfdI2bIQINpPKTnk185n4Y4bryN11QtznV+++5Af3t7EzO5uxnhosAHgqtHRx5nWU8uZwveM1E/5F5A/EiXEkfFfbFm6vapyqa/B4KmtLHfhgE5J0BoB0eayf5mQ==
- Cc: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Bertrand Marquis" <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Wed, 18 Sep 2024 17:53:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Secondary cpus initialization is not yet supported. Thus, we print an
appropriate message and put the secondary cpus in WFE state.
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
Changes from :-
v1 - 1. NR_CPUS is defined as 1 for MPU
2. Added a message in enable_secondary_cpu_mm()
xen/arch/Kconfig | 1 +
xen/arch/arm/arm64/mpu/head.S | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig
index 308ce129a8..8640b7ec8b 100644
--- a/xen/arch/Kconfig
+++ b/xen/arch/Kconfig
@@ -11,6 +11,7 @@ config NR_CPUS
default "8" if ARM && RCAR3
default "4" if ARM && QEMU
default "4" if ARM && MPSOC
+ default "1" if ARM && MPU
default "128" if ARM
help
Controls the build-time size of various arrays and bitmaps
diff --git a/xen/arch/arm/arm64/mpu/head.S b/xen/arch/arm/arm64/mpu/head.S
index ef55c8765c..3dfbbf8879 100644
--- a/xen/arch/arm/arm64/mpu/head.S
+++ b/xen/arch/arm/arm64/mpu/head.S
@@ -168,6 +168,16 @@ FUNC(enable_boot_cpu_mm)
b 1b
END(enable_boot_cpu_mm)
+/*
+ * Secondary cpu has not yet been supported on MPU systems. We will block the
+ * secondary cpu bringup at this stage.
+ */
+ENTRY(enable_secondary_cpu_mm)
+1: PRINT("- SMP not enabled yet -\r\n")
+ wfe
+ b 1b
+ENDPROC(enable_secondary_cpu_mm)
+
/*
* Local variables:
* mode: ASM
--
2.25.1
|