Re: [PATCH v3 3/7] xsm: refactor xsm_ops handling

2021-08-27 Thread Daniel P. Smith
On 8/25/21 11:16 AM, Jan Beulich wrote: > On 05.08.2021 16:06, Daniel P. Smith wrote: >> @@ -747,16 +747,16 @@ extern int xsm_dt_policy_init(void **policy_buffer, >> size_t *policy_size); >> extern bool has_xsm_magic(paddr_t); >> #endif >> >> -extern int register_xsm(struct xsm_operations *ops

Re: [PATCH v3 3/7] xsm: refactor xsm_ops handling

2021-08-25 Thread Jan Beulich
On 05.08.2021 16:06, Daniel P. Smith wrote: > @@ -747,16 +747,16 @@ extern int xsm_dt_policy_init(void **policy_buffer, > size_t *policy_size); > extern bool has_xsm_magic(paddr_t); > #endif > > -extern int register_xsm(struct xsm_operations *ops); > - > -extern struct xsm_operations dummy_xsm

[PATCH v3 3/7] xsm: refactor xsm_ops handling

2021-08-05 Thread Daniel P. Smith
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 instanc