]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86/MCE: switch some callback invocations to altcall
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Jan 2024 12:41:07 +0000 (13:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jan 2024 12:41:07 +0000 (13:41 +0100)
commit85ba4d050f9f3c4286164f21660ae88435b7e83c
tree0011c310f1246d312b71d45d9f9b42083b031b71
parent9f58616ddb1cc1870399de2202fafc7bf0d61694
x86/MCE: switch some callback invocations to altcall

While not performance critical, these hook invocations still would
better be converted: This way all pre-filled (and newly introduced)
struct mce_callback instances can become __initconst_cf_clobber, thus
allowing to eliminate another 9 ENDBR during the 2nd phase of
alternatives patching.

While this means registering callbacks a little earlier, doing so is
perhaps even advantageous, for having pointers be non-NULL earlier on.
Only one set of callbacks would only ever be registered anyway, and
neither of the respective initialization function can (subsequently)
fail.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/mcheck/mcaction.c
xen/arch/x86/cpu/mcheck/mcaction.h
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_amd.c
xen/arch/x86/cpu/mcheck/mce_intel.c