KVM: x86: Fix wrong masking on relative jump/call

commit 05c83ec9b7 upstream.

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.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Nadav Amit 2014-09-18 22:39:37 +03:00 • committed by Luis Henriques
commit ee37854de0