> On May 11, 2022, at 2:51 AM, Yuichiro NAITO <naito.yuich...@gmail.com> wrote: > > On 5/11/22 14:34, Yuichiro NAITO wrote: >> After applying your patch, cpu1 is not identified on my current kernel. >> Dmesg shows as follows. I'll see it further more. > > I found that LAPIC is necessary for `delay` function that is used in > `idendifycpu` and > waiting loop for CPUF_IDENTIFY flag is set.
Both lapic_delay() and tsc_delay() are plenty fast. i8254_delay() might cause issues on a VM. I need to think a bit, but your rearrangement of the patch is a step in the right direction. I will reply later with something better. Thank you for testing!