Re: [PATCH] x86, mem: move memmove to out of line assembler
From: Nick Desaulniers
Date: Tue Sep 27 2022 - 13:04:08 EST
Oh, yeah my patch essentially _is_
commit 9599ec0471de ("x86-64, mem: Convert memmove() to assembly file
and fix return value bug")
but for 32b (and no return value bug). I should probably amend a
reference to that in the commit message for this patch.
Also, I'm missing an EXPORT_SYMBOL in my v1, so modules that reference
memmove will fail to build during modpost. v2 is required.
On Fri, Sep 23, 2022 at 11:06 AM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> But I'm looking at that x86-64 memcpy_orig, and I think it looks
> fairly good as a template for doing the same on x86-32. And we could
> get rid of the duplication on the x86-64 side.
Is the suggestion that 64b memcpy_orig could be replaced with __memmove?
Sorry, I'm not sure I follow either suggestions for code reuse opportunities.
Also, any ideas which machines for QEMU don't have ERMS for testing
these non-ERMS implementations?
>
> That said, your patch looks fine too, as a "minimal changes" thing.
>
> Linus
--
Thanks,
~Nick Desaulniers