|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 05/15] xen/riscv: implement stub for smp_send_event_check_mask()
On 1/12/26 6:05 PM, Jan Beulich wrote: On 12.01.2026 17:53, Oleksii Kurochko wrote:On 1/7/26 4:47 PM, Jan Beulich wrote:On 24.12.2025 18:03, Oleksii Kurochko wrote:
But there is no default for RISC-V for config NR_CPUS:
config NR_CPUS
int "Maximum number of CPUs"
range 1 1 if ARM && MPU
range 1 16383
default "256" if X86
default "1" if ARM && MPU
default "8" if ARM && RCAR3
default "4" if ARM && QEMU
default "4" if ARM && MPSOC
default "128" if ARM
help
...
So a value from range [1, 16383] is chosen and based on the code of
sym_validate_range():
...
val = strtoll(sym->curr.val, NULL, base);
val2 = sym_get_range_val(prop->expr->left.sym, base);
if (val >= val2) {
val2 = sym_get_range_val(prop->expr->right.sym, base);
if (val <= val2)
return;
}
if (sym->type == S_INT)
sprintf(str, "%lld", val2);
else
sprintf(str, "0x%llx", val2);
sym->curr.val = xstrdup(str);
First initialization of val2 it is the left value of the range [1, 16383],so it
is 1
and val is 0 (I assume so that it is by initialization 0), thereby val2 = 1
will be
used as a value for NR_CPUS.
I also experimented by trying to update it to the range|2 16383|,
and|CONFIG_NR_CPUS|
became 2.
~ Oleksii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |