Re: [RFC PATCH 23/23] x86/process: Reset hardware history in context switch

Ricardo Neri
2022-10-02T22:06:20Z

On Tue, Sep 27, 2022 at 03:15:47PM +0200, Borislav Petkov wrote:
> On Fri, Sep 09, 2022 at 04:12:05PM -0700, Ricardo Neri wrote:
> > +void reset_hardware_history(void)
> > +{
> > + if (!static_cpu_has(X86_FEATURE_HRESET))
>
> In your whole patchset:
>
> s/static_cpu_has/cpu_feature_enabled/g

Sure I can do this, Boris. I guess this implies that I also need to add the
DISABLE_MASK bits. Othewise, IIUC, cpu_feature_enabled() falls back to
static_cpu_has().

Thanks and BR,
Ricardo