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

From: Bae, Chang Seok
Date: Mon Aug 16 2021 - 14:33:43 EST


On Aug 12, 2021, at 12:44, Borislav Petkov <bp@xxxxxxxxx> wrote:
> On Fri, Jul 30, 2021 at 07:59:39AM -0700, Chang S. Bae wrote:
>>
>> + if (boot_cpu_has(X86_FEATURE_XSAVES))
>
> cpu_feature_enabled

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?

Thanks,
Chang