x86emul: adjust_bnd() should check XCR0
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:36:55 +0000 (10:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:36:55 +0000 (10:36 +0100)
commitc44dc590f89b02e89b464c6eb14bab07af7baeb1
tree62ea42ec5f155bb6742ba8fcf3f7f8291031b798
parent8ea908be6135005514c2932dcddd96a2899ebee8
x86emul: adjust_bnd() should check XCR0

Experimentally MPX instructions have been confirmed to behave as NOPs
unless both related XCR0 bits are set to 1. By implication branches
then also don't clear BNDn.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c