Skip to contentSkip to conversation

xen: arm: Set state to SYS_STATE_smp_boot before smp initialization

RFC PATCH In review Ayan Kumar Halder 2 participants 2 messages Mar 20, 2024 – May 19, 2024

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 xen: arm: Set state to SYS_STATE_smp_boot before smp initialization

This is similar to what is being done on x86.

---
 xen/arch/arm/setup.c | 2 ++
 1 file changed, 2 insertions(+)
xen/arch/arm/setup.c +2 -0
index 424744ad5e..3d110685bc 100644
@@ -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);
Signature · 1 line
2.25.1
#1 lore raw

Hi Ayan,

Sorry this patch fell through the cracks.

Quoted 1 line · Ayan Kumar Halder

This is similar to what is being done on x86.

OOI, how did you find this issue?

Quoted 13 lines
---
  xen/arch/arm/setup.c | 2 ++
  1 file changed, 2 insertions(+)
xen/arch/arm/setup.c +0 -0
index 424744ad5e..3d110685bc 100644

xen/arch/arm/setup.c void asmlinkage __init start_xen(unsigned long boot_phys_offset+ · line 791

Quoted 5 lines
xen/arch/arm/setup.c +2 -0
@@ -787,6 +787,8 @@ void asmlinkage __init start_xen(unsigned long boot_phys_offset+
 
      processor_id();
 
+    system_state = SYS_STATE_smp_boot;
+

This is not quite the samem position as x86. The system state will be updated just before do_presmp_initcalls().

Can you explain the difference?

Cheers,

Signature · 1 line
Julien Grall