Re: [PATCH v1 02/14] xen/riscv: introduce smp_clear_cpu_maps()

2025-04-14 Thread Jan Beulich
On 14.04.2025 17:05, Oleksii Kurochko wrote: > On 4/10/25 3:10 PM, Jan Beulich wrote: >> On 08.04.2025 17:57, Oleksii Kurochko wrote: >>> +void __init smp_clear_cpu_maps(void) >>> +{ >>> +cpumask_clear(&cpu_possible_map); >>> +cpumask_clear(&cpu_online_map); >> What's the point of these? Al

Re: [PATCH v1 02/14] xen/riscv: introduce smp_clear_cpu_maps()

2025-04-14 Thread Oleksii Kurochko
On 4/10/25 3:10 PM, Jan Beulich wrote: On 08.04.2025 17:57, Oleksii Kurochko wrote: Initialize cpu_{possible, online, present}_map by using smp_clear_cpu_maps(). Drop DEFINE_PER_CPU(unsigned int, cpu_id) from stubs.c as this variable isn't expected to be used in RISC-V at all. Move declaratio

Re: [PATCH v1 02/14] xen/riscv: introduce smp_clear_cpu_maps()

2025-04-10 Thread Jan Beulich
On 08.04.2025 17:57, Oleksii Kurochko wrote: > Initialize cpu_{possible, online, present}_map by using smp_clear_cpu_maps(). > > Drop DEFINE_PER_CPU(unsigned int, cpu_id) from stubs.c as this variable isn't > expected to be used in RISC-V at all. > > Move declaration of cpu_{possible,online,prese

[PATCH v1 02/14] xen/riscv: introduce smp_clear_cpu_maps()

2025-04-08 Thread Oleksii Kurochko
Initialize cpu_{possible, online, present}_map by using smp_clear_cpu_maps(). Drop DEFINE_PER_CPU(unsigned int, cpu_id) from stubs.c as this variable isn't expected to be used in RISC-V at all. Move declaration of cpu_{possible,online,present}_map from stubs.c to smpboot.c as now smpboot.c is now