Re: [PATCH v4 03/16] x86/alternatives: Disable LASS when patching kernel alternatives
From: Borislav Petkov
Date: Wed Jul 10 2024 - 21:24:50 EST
On Thu, Jul 11, 2024 at 01:33:23AM +0300, Kirill A. Shutemov wrote:
> Hm. Do we have text_poke() in hot path?
>
> Even if we do, I doubt flipping AC flag would make any performance
> difference in context of all locking and TLB flushing we do in this
> codepath.
$ dmesg | grep text_poke | wc -l
237
In a silly guest.
And regardless, we don't do unnecessary toggling of rFLAGS.AC.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette