x86emul: 16-bit XBEGIN does not truncate rIP
PATCH 1/1 x86emul: 16-bit XBEGIN does not truncate rIP
SDM rev 071 points out this fact explicitly.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/x86_emulate/x86_emulate.c +3 -1
@@ -4246,10 +4246,12 @@ x86_emulate( {/* * xbegin unconditionally aborts, xabort is unconditionally -* a nop. +* a nop. It also does not truncate the destination address to +* 16 bits when 16-bit operand size is in effect. */ if ( b &1 ) { + op_bytes =4 ;jmp_rel ((int32_t )src.val); _regs.r (ax) =0 ; }
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Jan Beulich
SDM rev 071 points out this fact explicitly.
Signed-off-by Jan Beulich <[email protected]>
Yes - I found the same note in -071.
Reviewed-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Jan Beulich
SDM rev 071 points out this fact explicitly.
Signed-off-by Jan Beulich <[email protected]>
Release-acked-by Juergen Gross <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel