]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
x86emul: permit SAE for V{,U}COMIS{S,D}
authorJan Beulich <jbeulich@suse.com>
Tue, 18 Dec 2018 17:03:49 +0000 (18:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 18 Dec 2018 17:03:49 +0000 (18:03 +0100)
The avx512_vlen_check() invocation needs to be conditional.

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

index 20510151c89f41d0af579949875edc85b29adecc..9aebb1b6624153ac6f89a835fff3fdc7f28fdc6d 100644 (file)
@@ -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);