]> xenbits.xensource.com Git - xen.git/commitdiff
xsm: Switch xsm_ops to __alt_call_maybe_initdata
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Dec 2021 10:34:00 +0000 (10:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Dec 2021 15:52:24 +0000 (15:52 +0000)
This should have been done at the point xsm_ops became fully altcall'd.  This
puts the xsm_ops structure in .init on architectures where it is no longer
referenced at runtime.

Fixes: d868feb95a8a ("xen/xsm: Complete altcall conversion of xsm interface")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/xsm/xsm_core.c

index 21fffbcb41d3126d27b4be67d102e578a46428f0..14d98f1f725fd42e2c6402bfc9f2718ba8e1e2c1 100644 (file)
@@ -30,7 +30,7 @@
 
 #define XSM_FRAMEWORK_VERSION    "1.0.1"
 
-struct xsm_ops __read_mostly xsm_ops;
+struct xsm_ops __alt_call_maybe_initdata xsm_ops;
 
 enum xsm_ops_state {
     XSM_OPS_UNREGISTERED,