xsm/dummy: harden against speculative abuse
authorJan Beulich <jbeulich@suse.com>
Thu, 7 Jan 2021 14:11:25 +0000 (15:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Jan 2021 14:11:25 +0000 (15:11 +0100)
commit994f6478a48a60e3b407c7defc2d36a80f880b04
tree77d5ff9830477fa1c9eae6f4af538539cdcb2ce5
parenteb298f32fac5ac362eef30a66a9c9c42724d4ce6
xsm/dummy: harden against speculative abuse

First of all don't open-code is_control_domain(), which is already
suitably using evaluate_nospec(). Then also apply this construct to the
other paths of xsm_default_action(). Also guard two paths not using this
function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/include/xsm/dummy.h