]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Fix wrong masking on relative jump/call
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 18 Sep 2014 19:39:37 +0000 (22:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Oct 2014 11:21:15 +0000 (13:21 +0200)
commita3ad54b169cadd59d8f55c57f20a181f7e84fbf8
tree21a9438789f3de20ca325371359333a26791e0cc
parenta5d8a3b1229da93d32b717e5f90ac05e3fdf7b89
KVM: x86: Fix wrong masking on relative jump/call

Relative jumps and calls do the masking according to the operand size, and not
according to the address size as the KVM emulator does today.

This patch fixes KVM behavior.

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