]> xenbits.xensource.com Git - xen.git/commitdiff
x86emul: always set operand size for AVX-VNNI-INT8 insns
authorJan Beulich <jbeulich@suse.com>
Tue, 24 Sep 2024 12:55:11 +0000 (14:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Sep 2024 12:55:11 +0000 (14:55 +0200)
Unlike for AVX-VNNI-INT16 I failed to notice that op_bytes may still be
zero when reaching the respective case block: With the ext0f38_table[]
entries having simd_packed_int, the defaulting at the bottom of
x86emul_decode() won't set the field to non-zero for F3- or F2-prefixed
insns.

Fixes: 842acaa743a5 ("x86emul: support AVX-VNNI-INT8")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: d45687cca2450bfebe1dfbddb22f4f03c6fbc9cb
master date: 2024-08-23 09:11:15 +0200

xen/arch/x86/x86_emulate/x86_emulate.c

index d6b60f053999f56ac940805e13414b6ca91c9518..941941ef15a27fc0a899ee13a7b1f68687b0ffef 100644 (file)
@@ -6075,6 +6075,7 @@ x86_emulate(
     case X86EMUL_OPC_VEX_F2(0x0f38, 0x51): /* vpdpbssds [xy]mm/mem,[xy]mm,[xy]mm */
         host_and_vcpu_must_have(avx_vnni_int8);
         generate_exception_if(vex.w, X86_EXC_UD);
+        op_bytes = 16 << vex.l;
         goto simd_0f_ymm;
 
     case X86EMUL_OPC_VEX_66(0x0f38, 0x50): /* vpdpbusd [xy]mm/mem,[xy]mm,[xy]mm */