xen/xsm: Complete altcall conversion of xsm interface

With alternative_call() capable of handling compound types, the three
remaining hooks can be optimised at boot time too.

Fixes: 164a0b9653 ("xsm: refactor xsm_ops handling")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This commit is contained in:
Andrew Cooper committed 2021-11-29 13:53:05 +00:00
1 parent 5c7c78d0be
commit d868feb95a
1 file changed
+3 -3
+3 -3
View File
@@ -579,13 +579,13 @@ static inline int xsm_hypfs_op(xsm_default_t def)
static inline long xsm_do_xsm_op(XEN_GUEST_HANDLE_PARAM(void) op)
{
return xsm_ops.do_xsm_op(op);
return alternative_call(xsm_ops.do_xsm_op, op);
}
#ifdef CONFIG_COMPAT
static inline int xsm_do_compat_op(XEN_GUEST_HANDLE_PARAM(void) op)
{
return xsm_ops.do_compat_op(op);
return alternative_call(xsm_ops.do_compat_op, op);
}
#endif
@@ -698,7 +698,7 @@ static inline int xsm_mmuext_op(
static inline int xsm_update_va_mapping(
xsm_default_t def, struct domain *d, struct domain *f, l1_pgentry_t pte)
{
return xsm_ops.update_va_mapping(d, f, pte);
return alternative_call(xsm_ops.update_va_mapping, d, f, pte);
}
static inline int xsm_priv_mapping(
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.