Re: [PATCH RESEND v2 2/3] x86/cpu: Add setcpuid cmdline param
From: Borislav Petkov
Date: Mon Feb 17 2025 - 06:05:02 EST
On Wed, Jan 29, 2025 at 03:35:40PM +0000, Brendan Jackman wrote:
> In preparation for adding support to fake out CPU bugs, add a general
> facility to force enablement of CPU flags.
"... to force-enable ..."
>
> The flag taints the kernel and the documentation attempts to be clear
> that this is highly unsuitable for uses outside of kernel development
> and platform experimentation.
>
> The new arg is parsed just like clearcpuid, but instead of leading to
> setup_clear_cpu_cap() it leads to setup_force_cpu_cap().
>
> I've tested this by booting a nested QEMU guest on an Intel host, which
> with setcpuid=svm will claim that it supports AMD virtualization.
Move this sentence...
> Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
> ---
... here as it doesn't belong in a commit message.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette