is_hvm/pv_domain: block speculation
authorNorbert Manthey <nmanthey@amazon.de>
Thu, 14 Mar 2019 12:56:00 +0000 (13:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Apr 2019 10:17:03 +0000 (12:17 +0200)
commit0111f611a5997a20d087edbd7c05b141ff68ecec
treee7fde64a0778d900f55124a85ef3a7dfc7c757e6
parentbfbb18da4f360ed9e2f63c3502ca46fe2071644c
is_hvm/pv_domain: block speculation

When checking for being an hvm domain, or PV domain, we have to make
sure that speculation cannot bypass that check, and eventually access
data that should not end up in cache for the current domain type.

This is part of the speculative hardening effort.

Signed-off-by: Norbert Manthey <nmanthey@amazon.de>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/sched.h