]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix mov immediate emulation for 64-bit operands
authorNadav Amit <nadav.amit@gmail.com>
Thu, 6 Dec 2012 23:55:10 +0000 (21:55 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 14 Dec 2012 00:30:56 +0000 (22:30 -0200)
commit056faea9b10971fd7335c9633290cb8ffb50d8c8
tree90e3862c7359eae1b34983bfae79e358eeab76c2
parent2e89b3b445e9bf9a2dfafa043bc54de5f7b0c025
KVM: x86: fix mov immediate emulation for 64-bit operands

MOV immediate instruction (opcodes 0xB8-0xBF) may take 64-bit operand.
The previous emulation implementation assumes the operand is no longer than 32.
Adding OpImm64 for this matter.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=881579

Signed-off-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c