KVM: x86: Distinguish between stack operation and near branches
authorNadav Amit <namit@cs.technion.ac.il>
Fri, 24 Oct 2014 08:35:09 +0000 (11:35 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:20 +0000 (12:07 +0100)
commit58b7075d059f7d37ca86c76fb1446fa3447b9f4f
tree57b978e405103e5bfd274655aaf569b782b6156a
parentf7784046ab7cfc1645f4110b6ed14fbdffc2abee
KVM: x86: Distinguish between stack operation and near branches

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: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c