Re: [PATCH v4 1/9] xen/riscv: dt_processor_hartid() implementation

2025-06-11 Thread Jan Beulich
On 11.06.2025 10:26, Oleksii Kurochko wrote: > > On 6/10/25 4:08 PM, Jan Beulich wrote: >> On 05.06.2025 17:58, Oleksii Kurochko wrote: >>> @@ -14,3 +17,77 @@ void __init smp_prepare_boot_cpu(void) >>> cpumask_set_cpu(0, &cpu_possible_map); >>> cpumask_set_cpu(0, &cpu_online_map); >>>

Re: [PATCH v4 1/9] xen/riscv: dt_processor_hartid() implementation

2025-06-11 Thread Oleksii Kurochko
On 6/10/25 4:08 PM, Jan Beulich wrote: On 05.06.2025 17:58, Oleksii Kurochko wrote: @@ -14,3 +17,77 @@ void __init smp_prepare_boot_cpu(void) cpumask_set_cpu(0, &cpu_possible_map); cpumask_set_cpu(0, &cpu_online_map); } + +/** + * dt_get_hartid - Get the hartid from a CPU device n

Re: [PATCH v4 1/9] xen/riscv: dt_processor_hartid() implementation

2025-06-10 Thread Jan Beulich
On 05.06.2025 17:58, Oleksii Kurochko wrote: > @@ -14,3 +17,77 @@ void __init smp_prepare_boot_cpu(void) > cpumask_set_cpu(0, &cpu_possible_map); > cpumask_set_cpu(0, &cpu_online_map); > } > + > +/** > + * dt_get_hartid - Get the hartid from a CPU device node > + * > + * @cpun: CPU numbe

[PATCH v4 1/9] xen/riscv: dt_processor_hartid() implementation

2025-06-05 Thread Oleksii Kurochko
Implements dt_processor_hartid() to get the hart ID of the given device tree node and do some checks if CPU is available and given device tree node has proper riscv,isa property. As a helper function dt_get_hartid() is introduced to deal specifically with reg propery of a CPU device node. Signed-