x86/xstate: Make errors in xstate calculations more obvious by crashing the domain
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Jul 2018 09:29:00 +0000 (11:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:29:00 +0000 (11:29 +0200)
commit06d2a763d07d53a4ccc7bd1255ffc9ea01ec1609
tree3485eb1a1421321715ecd2c747c5dc805d15897e
parent543027c9842d8416047ef38846d2de1295052e92
x86/xstate: Make errors in xstate calculations more obvious by crashing the domain

If xcr0_max exceeds xfeature_mask, then something is broken with the CPUID
policy derivation or auditing logic.  If hardware rejects new_bv, then
something is broken with Xen's xstate logic.

In both cases, crash the domain with an obvious error message, to help
highlight the issues.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: d6371ccb93012db4ad6615fe666205b86308cb4e
master date: 2018-07-19 19:57:26 +0100
xen/arch/x86/xstate.c