Skip to contentSkip to conversation

changeset 8775

DISCUSSION Jan Beulich 2 participants 2 messages Feb 8, 2006

lore
Share & tools
lore
#0 lore raw

While this changeset appears to finally address the cpu_possible_map problems (according to other reports on this list) I wonder if this isn't incomplete. With prefill_possible_map() now being called from setup_arch() (why can't it be called at the same point as native calls it when CONFIG_HOTPLUG_CPU?), the immediately following call to smp_prepare_boot_cpu() (from start_kernel) will destroy this information again. With the effort of not setting up per-CPU information for impossible CPUs (some of this exists in our internal trees, not sure how much has been posted to mainline) this would be prone to break again soon.
Also, some of other code seems then superfluous or even ill:
- drivers/xen/core/smpboot.c: smp_prepare_cpus() should not initialize cpu_possible_map again, but should instead have its main loop controlled by this bit vector (and VCPUOP_is_up doesn't need to be called then anymore, too)
- arch/{i386,x86_64}/kernel/mpparse-xen.c: the setting of num_processors was and is completely out of sync with the real set of VCPUs used; I even wonder what purpose the whole file still serves

Jan

#1 lore raw
Quoted 4 lines · Jan Beulich

Also, some of other code seems then superfluous or even ill:
- drivers/xen/core/smpboot.c: smp_prepare_cpus() should not initialize
cpu_possible_map again, but should instead have
its main loop controlled by this bit vector (and VCPUOP_is_up doesn't need to be called then anymore, too)

I now fixed smp_prepare_boot_cpu/smp_prepare_cpus to respect the cpu_possible_map.

Quoted 3 lines

- arch/{i386,x86_64}/kernel/mpparse-xen.c: the setting of num_processors was and is completely out of sync with the
real set of VCPUs used; I even wonder what purpose the whole file still serves

Yes, we would like to get rid of at least the CPU/local-APIC portions of mpparse.c. If there's no IRQ/IO_APIC info in those tables we can get rid of the whole file.

-- Keir