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)
commit82268083fa78452c1c8be30a82984e470d9678c7
tree94b353219e729453843c1199c68de06eb9703d78
parentbac155310be35e0fa64b066d47625d2a12a75122
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