On 30/10/2018 22:16, Marek Marczykowski-Górecki wrote: > Use physinfo.max_cpu_id instead of physinfo.nr_cpus to get max CPU id. > This fixes for example 'xenpm get-cpufreq-para' with smt=off, which > otherwise would miss half of the cores. > > Signed-off-by: Marek Marczykowski-Górecki <[email protected]> > --- > Reported by @tfm1: > https://github.com/QubesOS/qubes-issues/isues/4456
Thats a 404, but /issues/ looks to work. Either way, Reviewed-by: Andrew Cooper <[email protected]> > --- > tools/misc/xenpm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c > index 86c12ea5fb..112590fb67 100644 > --- a/tools/misc/xenpm.c > +++ b/tools/misc/xenpm.c > @@ -1231,7 +1231,7 @@ int main(int argc, char *argv[]) > xc_interface_close(xc_handle); > return ret; > } > - max_cpu_nr = physinfo.nr_cpus; > + max_cpu_nr = physinfo.max_cpu_id; > > /* calculate how many options match with user's input */ > for ( i = 0; i < ARRAY_SIZE(main_options); i++ ) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
