Re: [patch v2 21/38] x86/cpu: Provide cpu_init/parse_topology()
From: Peter Zijlstra
Date: Mon Jul 31 2023 - 09:28:28 EST
On Mon, Jul 31, 2023 at 02:34:39PM +0200, Thomas Gleixner wrote:
> This collides massively with the other work I'm doing, which uses the
> MADT provided information to actually evaluate various topology related
> things upfront and later during bringup. Thats badly needed because lots
> of todays infrastructure is based on heuristics and guesswork.
>
> But it seems I wasted a month on reworking all of this just to be
> stopped cold in the tracks by completely undocumented and unnecessary
> hyper-v abuse.
>
> So if Hyper-V insists on abusing the initial APIC ID as read from CPUID
> for topology information related to L3, then hyper-v should override the
> cache topology mechanism and not impose this insanity on the basic
> topology evaluation infrastructure.
So I'm very tempted to suggest you continue with the topology rewrite
and let Hyper-V keep the pieces. They're very clearly violating the SDM.
Thing as they stand are untenable, the whole topology thing as it exists
today is an untenable shitshow.
Michael, is there anything you can do early (as in MADT parse early) to
fix up the APIC-IDs?