Re: [RFC PATCH 23/23] x86/process: Reset hardware history in context switch
From: Borislav Petkov
Date: Mon Oct 03 2022 - 15:55:32 EST
On Mon, Oct 03, 2022 at 12:49:35PM -0700, Ricardo Neri wrote:
> Since I did not implement a DISABLE_MASK bit nor a CONFIG_ option for
> HRESET, I thought that static_cpu_has() was sufficient.
The only function that should be used to query X86_FEATURE_ flags is
cpu_feature_enabled().
> I am not against using cpu_feature_enabled(), I just want to confirm that
> I also need to implement the DISABLE_MASK bit and the CONFIG_ option.
You don't have to.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette