From d6385ea15f7089ca6fb554249f6717c69016c8bd Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 1 Dec 2021 10:34:00 +0000 Subject: [PATCH] xsm: Switch xsm_ops to __alt_call_maybe_initdata 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 Reviewed-by: Jan Beulich Reviewed-by: Bertrand Marquis Reviewed-by: Daniel P. Smith --- xen/xsm/xsm_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/xsm/xsm_core.c b/xen/xsm/xsm_core.c index 21fffbcb41..14d98f1f72 100644 --- a/xen/xsm/xsm_core.c +++ b/xen/xsm/xsm_core.c @@ -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, -- 2.30.2