Re: [PATCH v9 08/26] x86/fpu/xstate: Introduce helpers to manage the XSTATE buffer dynamically

From: Borislav Petkov
Date: Mon Aug 16 2021 - 14:52:49 EST


On Mon, Aug 16, 2021 at 06:33:37PM +0000, Bae, Chang Seok wrote:
> Without DISABLE_XSAVES or something under ifdef CONFIG_X86_XX in
> $arch/x86/include/asm/disable-features.h, I don’t see the difference with this
> macro. Am I missing anything here? Or, boot_cpu_has() is going to be
> deprecated everywhere?

There's:

cpu_has
this_cpu_has
cpu_feature_enabled
boot_cpu_has
static_cpu_has

All code where it doesn't matter which CPU, should use
cpu_feature_enabled() and simplicity will ensue in these here lands.

--
Regards/Gruss,
Boris.

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