From: Jan Beulich Date: Tue, 18 Dec 2018 17:03:49 +0000 (+0100) Subject: x86emul: permit SAE for V{,U}COMIS{S,D} X-Git-Tag: xen-pt-allocation-1.1-base~179 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=529ccf68e87aa7b85d4a9db4c5af6e54e0ac3b85;p=people%2Fliuw%2Fxen.git x86emul: permit SAE for V{,U}COMIS{S,D} The avx512_vlen_check() invocation needs to be conditional. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index 20510151c8..9aebb1b662 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -6187,7 +6187,8 @@ x86_emulate( evex.w != evex.pfx), EXC_UD); host_and_vcpu_must_have(avx512f); - avx512_vlen_check(true); + if ( !evex.br ) + avx512_vlen_check(true); get_fpu(X86EMUL_FPU_zmm); opc = init_evex(stub);