On 29/11/2021 09:11, Jan Beulich wrote:
> Both vendors' code populates all hooks, so there's no need to have any
> NULL checks before invoking the hook functions. With that the only
> remaining uses of the object are in alternative_{,v}call(), i.e. none
> after alternatives patching.
>
> In vpmu_arch_initialise() the check gets replaced by an opt_vpmu_enabled
> one, as I couldn't convince myself that the pre-existing checks would be
> sufficient to cover all possible cases.Yeah - that sounds safe. As I said on the previous patch, there is a massive quantity of clean-up and simplification to do now with XEN_DOMCTL_CDF_vpmu. > Signed-off-by: Jan Beulich <[email protected]> Reviewed-by: Andrew Cooper <[email protected]>
