KVM: Generalize exception injection mechanism
authorAvi Kivity <avi@qumranet.com>
Sun, 25 Nov 2007 11:41:11 +0000 (13:41 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:18 +0000 (17:53 +0200)
commit298101da2f507c13eaf179ee4507a7c0fe3e7b06
tree2c0808964e5bc04812f0379b945fb187aaf901eb
parent4bf8ed8dd2781a5e7603a83f8ee1d4f5aa04ebc4
KVM: Generalize exception injection mechanism

Instead of each subarch doing its own thing, add an API for queuing an
injection, and manage failed exception injection centerally (i.e., if
an inject failed due to a shadow page fault, we need to requeue it).

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c
drivers/kvm/vmx.c
drivers/kvm/x86.c
drivers/kvm/x86.h