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

Borislav Petkov
2024-07-03T15:54:31Z

Dave Hansen <dave.hansen@intel.com> 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.