KVM: x86: Fix wrong masking on relative jump/call
authorNadav Amit <[email protected]>
Thu, 18 Sep 2014 19:39:37 +0000 (22:39 +0300)
committerPaolo Bonzini <[email protected]>
Fri, 24 Oct 2014 11:21:15 +0000 (13:21 +0200)
commit05c83ec9b73c8124555b706f6af777b10adf0862
tree21a9438789f3de20ca325371359333a26791e0cc
parent2febc839133280d5a5e8e1179c94ea674489dae2
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: [email protected]
Signed-off-by: Nadav Amit <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/emulate.c