Re: [PATCH v9 2/7] x86/hygon: Map CPU NodeIds to DF nodes
From: Borislav Petkov
Date: Fri Nov 13 2026 - 05:56:31 EST
On Thu, Oct 29, 2026 at 01:33:08PM +0800, Lin Wang wrote:
> +static int __maybe_unused cpu_to_df_node(unsigned int cpu)
> +{
> + if (cpu >= nr_cpu_ids)
That cpu and nr_cpu_ids mean nothing in a guest so I'm thinking you wanna test
hypervisor first...
> + return -EINVAL;
> +
> + /*
> + * The NodeId reported by CPUID in a guest may not describe the
> + * physical DF topology.
> + */
> + if (cpu_feature_enabled(X86_FEATURE_HYPERVISOR))
^^^^^^^^^^^^
> + return -ENODEV;
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette