Re: [PATCH v2 1/5] x86/topology: Export helper to get CPU number from APIC ID

From: Borislav Petkov
Date: Mon Jul 01 2024 - 15:07:35 EST


On Mon, Jul 01, 2024 at 01:51:42PM -0400, Yazen Ghannam wrote:
> X86_LOCAL_APIC depends on the logical OR of a bunch of options. So it
> depends on "any one" of the options to be enabled. But it doesn't need
> all of them.

Yes, I can see that.

How does any of that info answer your initial question?

IOW, if you don't have LAPIC support in the kernel, what CPU number should we
return for any APIC ID serving as input, and why?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette