]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Distinguish between stack operation and near branches
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 18 Sep 2014 19:39:42 +0000 (22:39 +0300)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 13:43:43 +0000 (14:43 +0100)
commit067eafed0e6d973ee173fe1b7c2e1b29bfbfdafe
treef3c0c34b21bcc84f91a7d10ce1074935a3a4d487
parent154832bf8bb0c22cd1b2a70c3e4491548f8d158a
KVM: x86: Distinguish between stack operation and near branches

commit 58b7075d059f7d37ca86c76fb1446fa3447b9f4f upstream.

In 64-bit, stack operations default to 64-bits, but can be overriden (to
16-bit) using opsize override prefix. In contrast, near-branches are always
64-bit.  This patch distinguish between the different behaviors.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kvm/emulate.c