Re: [PATCH v5 2/6] x86: re-work memset()

2025-06-06 Thread Jan Beulich
On 05.06.2025 18:59, Teddy Astie wrote: > Le 05/06/2025 à 12:26, Jan Beulich a écrit : >> --- a/xen/arch/x86/alternative.c >> +++ b/xen/arch/x86/alternative.c >> @@ -346,6 +346,12 @@ static int init_or_livepatch _apply_alte >> /* 0xe8/0xe9 are relative branches; fix the offset. */ >>

Re: [PATCH v5 2/6] x86: re-work memset()

2025-06-05 Thread Teddy Astie
Le 05/06/2025 à 12:26, Jan Beulich a écrit : > Move the function to its own assembly file. Having it in C just for the > entire body to be an asm() isn't really helpful. Then have two flavors: > A "basic" version using qword steps for the bulk of the operation, and an > ERMS version for modern hard

[PATCH v5 2/6] x86: re-work memset()

2025-06-05 Thread Jan Beulich
Move the function to its own assembly file. Having it in C just for the entire body to be an asm() isn't really helpful. Then have two flavors: A "basic" version using qword steps for the bulk of the operation, and an ERMS version for modern hardware, to be substituted in via alternatives patching.