KVM: x86: NOP emulation clears (incorrectly) the high 32-bits of RAX
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 15 Jun 2014 13:13:01 +0000 (16:13 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jun 2014 10:52:10 +0000 (12:52 +0200)
commita825f5cc4a8455663562809748240169cb9bc2c0
tree17ea2adbf49880c35c630268b7eaa01dfe35bfed
parent140bad89fd25db1aab60f80ed7874e9a9bdbae3b
KVM: x86: NOP emulation clears (incorrectly) the high 32-bits of RAX

On long-mode the current NOP (0x90) emulation still writes back to RAX.  As a
result, EAX is zero-extended and the high 32-bits of RAX are cleared.

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