]> xenbits.xensource.com Git - xen.git/commit
x86/alternatives: allow replacement code snippets to be re-used
authorJan Beulich <jbeulich@suse.com>
Fri, 2 May 2025 07:44:49 +0000 (09:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 May 2025 07:44:49 +0000 (09:44 +0200)
commitb458596ac3b2ac3c365769d4fd278ae17aa76d22
tree43dabae7df6fbfe146376b642408a62b636610eb
parent3120e479a0e55768eccb5e8e7c3c81fd809501a0
x86/alternatives: allow replacement code snippets to be re-used

In a number of cases we use ALTERNATIVE_2 with both replacement insns /
insn sequences being identical. Avoid emitting the same code twice, and
instead alias the necessary helper labels to the existing ones.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/alternative-asm.h