Re: [PATCH 9/9] x86/cpu: Introduce interface to reset hardware history

Borislav Petkov
2024-02-03T09:40:30Z

On Fri, Feb 02, 2024 at 08:05:15PM -0800, Ricardo Neri wrote:
> +void reset_hardware_history(void)
> +{
> + asm_inline volatile (ALTERNATIVE("", __ASM_HRESET, X86_FEATURE_HRESET)
> + : : "a" (hardware_history_features) : "memory");
> +}

This thing belongs in the header too, and it should be __always_inline.

--
Regards/Gruss,
Boris.