xen: arm: Set state to SYS_STATE_smp_boot before smp initialization
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.
Signed-off-by Ayan Kumar Halder <[email protected]>
--- xen/arch/arm/setup.c | 2 ++ 1 file changed, 2 insertions(+)
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; +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
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
Signed-off-by Ayan Kumar Halder <[email protected]>--- xen/arch/arm/setup.c | 2 ++ 1 file changed, 2 insertions(+)xen/arch/arm/setup.c +0
-0
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