Re: [PATCH v2 2/3] x86/alternatives: Rework get_ideal_nops()
Jan Beulich <[email protected]> Wed, 5 Aug 2026 10:46:55 +0200
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On 05.08.2026 09:53, Andrew Cooper wrote:
> The {k8,p6}_nops[] arrays are both 80-byte structures indexing 45-byte
> structures. Furthermore, perhaps unusually for C, the source layout is an
> obvious hint about the triangular nature of the structure.
>
> Therefore, we can replace the pointer chase with some simple arithmetic.
>
> No functional change.
>
> Signed-off-by: Andrew Cooper <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>