Re: [PATCH] x86/speculation: Add support for STIBP always-on preferred mode

From: Borislav Petkov
Date: Tue Dec 11 2018 - 16:19:55 EST

On Tue, Dec 11, 2018 at 07:19:09PM +0000, Lendacky, Thomas wrote:
> Alternatively, I can reuse SPECTRE_V2_USER_STRICT and issue pr_info_once()
> to show that the method has been switched. This would reduce the changes
> to the code, but then the sysfs information doesn't show the switch (which
> may be just fine).

You can still query X86_FEATURE_AMD_STIBP_ALWAYS_ON in stibp_state(),

But yeah, forcing SPECTRE_V2_USER_STRICT on STIBP_ALWAYS_ON makes sense
to me, with the already gazillion options we have :-\


Good mailing practices for 400: avoid top-posting and trim the reply.