xsm: Use __initconst_cf_clobber for xsm_ops
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Nov 2021 19:36:23 +0000 (19:36 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit7a7b2be4132d3b96833690ccdb637e339aea6d2e
tree1a8daa3ba3eab3f32ec850fc3b3780ca46e42c3d
parent37ed5da851b867ae7133720dba3cf96e83bef2e1
xsm: Use __initconst_cf_clobber for xsm_ops

All calls through xsm_ops are fully altcall'd.  Harden all function pointer
targets.

This yields:

  (XEN) altcall: Optimised away 197 endbr64 instructions

of 1655 on an everything-enabled build of Xen, which is ~12%.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/silo.c