]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Emulation of call may use incorrect stack size
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 26 Jan 2015 07:32:27 +0000 (09:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:17:34 +0000 (12:17 +0100)
commit5f142b8b688bda7c22baf8da4fb0d3671b88f5bf
tree94b353219e729453843c1199c68de06eb9703d78
parent0275d99c3f3c7d0d0736195715db4ef46eb7cccd
KVM: x86: Emulation of call may use incorrect stack size

On long-mode, when far call that changes cs.l takes place, the stack size is
determined by the new mode.  For instance, if we go from 32-bit mode to 64-bit
mode, the stack-size if 64.  KVM uses the old stack size.

Fix it.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c