KVM: x86: smsw emulation is incorrect in 64-bit mode
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 2 Jun 2014 15:34:11 +0000 (18:34 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 15:46:19 +0000 (17:46 +0200)
commit32e94d0696c26c6ba4f3ff53e70f6e0e825979bc
tree906c7d91be5d9fa12b0991f3d2d5413d3f18348e
parentaaa05f2437b9450f30b301db962ec4d45ec90fbb
KVM: x86: smsw emulation is incorrect in 64-bit mode

In 64-bit mode, when the destination is a register, the assignment is done
according to the operand size. Otherwise (memory operand or no 64-bit mode), a
16-bit assignment is performed.

Currently, 16-bit assignment is always done to the destination.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c