Re: [PATCH v9 4/5] x86/cpuid: fix unbootable VMs by really inlining memcmp() in hypervisor_cpuid_base()

From: Borislav Petkov

Date: Tue Sep 15 2026 - 20:05:04 EST


On Tue, Sep 15, 2026 at 08:49:27PM -0300, Mauricio Faria de Oliveira wrote:
> IMO a fix in the source file is clearer, less obfuscated than in a
> Makefile (and the source file has to be changed anyway).

No, with the build option you only need to touch the Makefile which contains
the build directives for the objects which contain hypervisor_cpuid_base() and
xen_prepare_pvh().

> It also has the potential advantage that, if the Makefile change slips in
> a future change/refactor, the issue shouldn't reappear.

Yes, that is possible.

> Either way, please let me know and I can certainly change the patch.

Ok, let's do the explicit thing - the difference between the solutions is not
that earth-shattering.

Thx.

--
Regards/Gruss,
Boris.

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