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

From: Borislav Petkov
Date: Sat Feb 03 2024 - 04:40:41 EST


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.

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