]> xenbits.xensource.com Git - xen.git/commitdiff
x86emul: LOCK check adjustments
authorJan Beulich <jbeulich@suse.com>
Thu, 9 Feb 2017 09:29:44 +0000 (10:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Feb 2017 09:29:44 +0000 (10:29 +0100)
BT, being encoded as DstBitBase just like BT{C,R,S}, nevertheless does
not write its (register or memory) operand and hence also doesn't allow
a LOCK prefix to be used.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: f2d4f4ba80de8a03a1b0f300d271715a88a8433d
master date: 2017-01-20 14:37:33 +0100

xen/arch/x86/x86_emulate/x86_emulate.c

index e9a6fe5a4c0bd8b71363f866b746670fc2ba7e3a..08b937e884ca18c8972ea9f60edb5f75c0864c7b 100644 (file)
@@ -4613,6 +4613,7 @@ x86_emulate(
         break;
 
     case 0xa3: bt: /* bt */
+        generate_exception_if(lock_prefix, EXC_UD, 0);
         emulate_2op_SrcV_nobyte("bt", src, dst, _regs.eflags);
         dst.type = OP_NONE;
         break;