bug in cpuid & msr on nosmp machine
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Andrew Morton
Quoted 4 lines · Rusty Russell
Quoted 2 lines · Andrew Morton
I think what you want here is
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
if (!cpu_possible(cpu) || !cpu_online(cpu)) return -ENXIO;It works, but it's not really correct.
cpu_possible()is correct, butcpu_online()might no longer be true by the timedo_cpu_read()callsdo_cpu_id().mutter. Are we likely to see any ia32 or
x86_64hotplug-cpu machines?
Yes. Think vmware and virtualization, where partitions could get CPUs added and removed at runtime.
-Andi