File 58510cac-x86emul-MOVNTI-no-REP-prefixes.patch of Package xen.11298

# Commit 96a7cb37b921d2b320183d194d143262e1dd5b53
# Date 2016-12-14 10:11:08 +0100
# Author Jan Beulich <jbeulich@suse.com>
# Committer Jan Beulich <jbeulich@suse.com>
x86emul: MOVNTI does not allow REP prefixes

Just like 66, prefixes F3 and F2 cause #UD.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

--- a/xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c
@@ -4673,7 +4673,7 @@ x86_emulate(
     case 0xc3: /* movnti */
         /* Ignore the non-temporal hint for now. */
         vcpu_must_have_sse2();
-        generate_exception_if(dst.bytes <= 2, EXC_UD, -1);
+        generate_exception_if(vex.pfx, EXC_UD, -1);
         dst.val = src.val;
         break;
 
openSUSE Build Service is sponsored by