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 - 12:11:16 EST


On Mon, Sep 14, 2026 at 10:11:55PM -0700, Borislav Petkov wrote:
> Hmm, never heard that before but that doesn't mean anything. Probably should
> mention it in one of the commit messages so that we know for the future...

My compiler friends are telling me that gcc doesn't do that now but it might
in the future, perhaps.

-fno-builtin-memcmp

will stop any of that behavior so if, perhaps, building the pvh code with it
looks better as a solution, we probably could use it.

--
Regards/Gruss,
Boris.

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