Skip to content

Commit 03f6298

Browse files
tpressuresean-jc
authored andcommitted
KVM: x86/emulator: emulate movbe with operand-size prefix
The MOVBE instruction can come with an operand-size prefix (66h). In this, case the x86 emulation code returns EMULATION_FAILED. It turns out that em_movbe can already handle this case and all that is missing is an entry in respective opcode tables to populate gprefix->pfx_66. Signed-off-by: Thomas Prescher <[email protected]> Signed-off-by: Julian Stecklina <[email protected]> Acked-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent e1dda3a commit 03f6298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/emulate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4505,11 +4505,11 @@ static const struct instr_dual instr_dual_0f_38_f1 = {
45054505
};
45064506

45074507
static const struct gprefix three_byte_0f_38_f0 = {
4508-
ID(0, &instr_dual_0f_38_f0), N, N, N
4508+
ID(0, &instr_dual_0f_38_f0), ID(0, &instr_dual_0f_38_f0), N, N
45094509
};
45104510

45114511
static const struct gprefix three_byte_0f_38_f1 = {
4512-
ID(0, &instr_dual_0f_38_f1), N, N, N
4512+
ID(0, &instr_dual_0f_38_f1), ID(0, &instr_dual_0f_38_f1), N, N
45134513
};
45144514

45154515
/*

0 commit comments

Comments
 (0)