[RFC PATCH v1] xen: arm: Set state to SYS_STATE_smp_boot before smp initialization

Ayan Kumar Halder posted 1 patch 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20240320185455.3409182-1-ayan.kumar.halder@amd.com
xen/arch/arm/setup.c | 2 ++
1 file changed, 2 insertions(+)
[RFC PATCH v1] xen: arm: Set state to SYS_STATE_smp_boot before smp initialization
Posted by Ayan Kumar Halder 1 month, 1 week ago
This is similar to what is being done on x86.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
---
 xen/arch/arm/setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index 424744ad5e..3d110685bc 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -787,6 +787,8 @@ void asmlinkage __init start_xen(unsigned long boot_phys_offset,
 
     processor_id();
 
+    system_state = SYS_STATE_smp_boot;
+
     smp_init_cpus();
     nr_cpu_ids = smp_get_max_cpus();
     printk(XENLOG_INFO "SMP: Allowing %u CPUs\n", nr_cpu_ids);
-- 
2.25.1