]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: CMOV emulation on legacy mode is wrong
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 30 Mar 2015 12:39:19 +0000 (15:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Mar 2015 14:45:50 +0000 (16:45 +0200)
commitdf8e5922183242c03019198bc3d23d9ecf0433db
tree21b754e834deccb4e4982e7c3bfec1cf3cac6842
parentfe58273dfc9d87b548a8e76a8b2d20f9d0fc25fc
KVM: x86: CMOV emulation on legacy mode is wrong

On legacy mode CMOV emulation should still clear bits [63:32] even if the
assignment is not done. The previous fix bbf44498a1 ("KVM: x86: emulation of
dword cmov on long-mode should clear [63:32]") was incomplete.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Message-Id: <1427719163-5429-2-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c