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

Borislav Petkov
2024-07-05T09:44:48Z

On Thu, Jul 04, 2024 at 07:45:00PM -0700, H. Peter Anvin wrote:
> Except that that would be more cleanly spelled wrmsrns()... let's just
> abstract the whole thing away and let the user use wrmsrns() whenever
> serialization is not necessary.

Just don't make it more complex and unreadable than it has to be.

cpu_feature_enabled() already is patching things for optimal perf so even if
PeterZ prefers the alternative, I say it is ugly and, more importantly,
unnecessary.

--
Regards/Gruss,
Boris.