> On Jun 1, 2023, at 2:29 AM, Juergen Gross <[email protected]> wrote: > > On 28.04.23 11:50, 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 relocation metadata on >> relocatable builds. And the alignment could be hard coded to be 4 now. >> Signed-off-by: Hou Wenlong <[email protected]> >> Cc: Thomas Garnier <[email protected]> >> Cc: Lai Jiangshan <[email protected]> >> Cc: Kees Cook <[email protected]> > > Reviewed-by: Juergen Gross <[email protected]> > > I think this patch should be taken even without the series. It looks good to me, I am just not sure what the alignment is needed at all. Why not to make the struct __packed (like struct alt_instr) and get rid of all the .align directives? Am I missing something? _______________________________________________ Virtualization mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: [PATCH RFC 13/43] x86/paravirt: Use relative reference for original instruction
Nadav Amit via Virtualization Sun, 04 Jun 2023 23:41:26 -0700
- Re: [PATCH RFC 13/43] x86/paravirt: Use r... Juergen Gross via Virtualization
- Re: [PATCH RFC 13/43] x86/paravirt: ... Nadav Amit via Virtualization
