x86emul: MOVBE requires a memory operand

The reg-reg forms should cause #UD; they come into existence only with
APX, where MOVBE also extends BSWAP (for the latter not being "eligible"
to a REX2 prefix).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 4c5d9a01f8
master date: 2024-12-02 09:50:14 +0100
This commit is contained in:
Jan Beulich committed 2024-12-16 13:34:19 +01:00
1 parent 5a511a9b78
commit 37b069fc3b
1 file changed
+1
+1
View File
@@ -6912,6 +6912,7 @@ x86_emulate(
case X86EMUL_OPC(0x0f38, 0xf0): /* movbe m,r */
case X86EMUL_OPC(0x0f38, 0xf1): /* movbe r,m */
generate_exception_if(ea.type != OP_MEM, X86_EXC_UD);
vcpu_must_have(movbe);
switch ( op_bytes )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.