KVM: x86: Push potential exception error code on task switches
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 14 Apr 2010 13:51:09 +0000 (15:51 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:46 +0000 (12:17 +0300)
commite269fb2189fb86d79d64c0ca74c6c1a549ad4aa3
tree627c658efaec155d1f295d1fc7b8abded9d4f861
parent0760d44868f351ba30fc9a08cf1830e46aa72466
KVM: x86: Push potential exception error code on task switches

When a fault triggers a task switch, the error code, if existent, has to
be pushed on the new task's stack. Implement the missing bits.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/include/asm/kvm_host.h
arch/x86/include/asm/svm.h
arch/x86/kvm/emulate.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c