]> xenbits.xensource.com Git - xen.git/commit
x86/alternatives: Rework information passing into nmi_apply_alternatives()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 19 Apr 2025 23:44:17 +0000 (00:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Apr 2025 18:37:57 +0000 (19:37 +0100)
commitd4ef51d840f4329782cd204b0899be27e8592693
tree44c1e8c32b8c8865a6450e6b9a4161903b63100b
parent4ab3d34da3d88cff102a76c2ba928cff1ce8ea75
x86/alternatives: Rework information passing into nmi_apply_alternatives()

nmi_apply_alternatives() is soon going to need to dispatch to multiple
functions, and a force parameter is not a good way of passing information.

Introduce ALT_INSNS and ALT_CALLS to pass in at the top level to select the
operation(s) desired.  They represent what will happen when we've separated
the altcalls out of the general alternative instructions infrastructure,
although in the short term we still need to synthesise the force parameter for
_apply_alternatives().

Move two externs to reduce their scope a little.

No functional change.

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