The avx512_vlen_check() invocation needs to be conditional.

Signed-off-by: Jan Beulich <[email protected]>

--- a/xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c
@@ -6179,7 +6179,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);



_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to