]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit607bed7fb1b218961ba4b00b100c563484eb52ee
tree57b978e405103e5bfd274655aaf569b782b6156a
parente04d536268de6e4bf1ad3fdff796696b5983707a
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