xsm: refactor xsm_ops handling
authorDaniel P. Smith <dpsmith@apertussolutions.com>
Thu, 16 Sep 2021 08:59:40 +0000 (10:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 08:59:40 +0000 (10:59 +0200)
commit164a0b9653f49ba2a2dfc4e42b99f988212d0c64
tree56ab2af251ebc0c325f203f1d6c3eab4de8a3827
parentb17546d7f33e95103922470b1ae422b60a04ec06
xsm: refactor xsm_ops handling

This renames the `struct xsm_operations` to the shorter `struct xsm_ops` and
converts the global xsm_ops from being a pointer to an explicit instance. As
part of this conversion, it reworks the XSM modules init function to return
their xsm_ops struct which is copied in to the global xsm_ops instance.

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/silo.c
xen/xsm/xsm_core.c