Re: [PATCH v1 2/4] x86/fred: Write to FRED MSRs with wrmsrns()

From: Borislav Petkov
Date: Wed Jul 03 2024 - 11:54:40 EST


Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
>On 7/3/24 01:54, Xin Li (Intel) wrote:
>&gt; Do FRED MSR writes with wrmsrns() rather than wrmsrl().
>
>A longer changelog would be appreciated here. The wrmsrns() is
>presumably to avoid the WRMSR serialization overhead and the CR4 write
>provides all of the serialization that we need.

Also, all those wrmsrns() writes better be behind a CPUID check.

Thx.