* Borislav Petkov <[email protected]> wrote:
> On Wed, Mar 04, 2015 at 08:13:24AM +0100, Ingo Molnar wrote:
> > Btw., the x86 memset() variants are using this today, and I think this
> > is the most optimal jump-patching variant, even if it means a small
> > amount of code duplication between the copy_user variants.
>
> Yeah, the problem with that one was that we patch a huge amount of code,
> see the dump below.
>
> The X86_FEATURE_REP_GOOD thing replaces a 172 bytes memset with the
> 42 byte REP;STOSQ version and the X86_FEATURE_ERMS does the same
> with REP;STOSB.
So I'd not patch in the large _orig variant, it's legacy mostly - but
the two fast variants?
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/