Re: [PATCH v2] x86/paravirt: Use relative reference for original instruction

2022-11-27 Thread H. Peter Anvin
On November 27, 2022 7:03:20 PM PST, Hou Wenlong wrote: >On Sun, Nov 27, 2022 at 09:24:34AM -0800, H. Peter Anvin wrote: >> On November 24, 2022 3:51:53 AM PST, Hou Wenlong >> wrote: >> >Similar to the alternative patching, use relative reference for original >> >instruction rather than absolut

Re: [PATCH v2] x86/paravirt: Use relative reference for original instruction

2022-11-27 Thread H. Peter Anvin
On November 24, 2022 3:51:53 AM PST, Hou Wenlong wrote: >Similar to the alternative patching, use relative reference for original >instruction rather than absolute one, which saves 8 bytes for one entry >on x86_64. And it could generate R_X86_64_PC32 relocation instead of >R_X86_64_64 relocation

Re: [PATCH v2] x86/paravirt: Use relative reference for original instruction

2022-11-24 Thread Juergen Gross via Virtualization
On 24.11.22 12:51, Hou Wenlong wrote: Similar to the alternative patching, use relative reference for original instruction rather than absolute one, which saves 8 bytes for one entry on x86_64. And it could generate R_X86_64_PC32 relocation instead of R_X86_64_64 relocation, which also reduces r