]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38e281ca9c4f7fa62a4e4d6dd5bc3075cf017eef
tree17ea2adbf49880c35c630268b7eaa01dfe35bfed
parentda2cf6cb46461a328cf5bbafb8d9d159528216b8
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