]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:28 +0000 (19:02 +0100)
commit4b4290c052b7180700de7257793a31f4c0ae75df
treee75b14b595912c1359d83e5d63fd8d78fcab3107
parent3f119d66b95c31910a5363b15308ff3d18bba29d
KVM: x86: Fix wrong masking on relative jump/call

commit 05c83ec9b73c8124555b706f6af777b10adf0862 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: Jiri Slaby <jslaby@suse.cz>
arch/x86/kvm/emulate.c