KVM: Non-atomic interrupt injection
authorAvi Kivity <avi@redhat.com>
Tue, 20 Jul 2010 12:06:17 +0000 (15:06 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:54 +0000 (10:52 +0200)
commitb463a6f744a263fccd7da14db1afdc880371a280
tree30dbb8d47f4a3a6b2036dd890d03cb53081eadef
parent83422e17c19d61399cab7dbf9bf40ff9af2a7dd2
KVM: Non-atomic interrupt injection

Change the interrupt injection code to work from preemptible, interrupts
enabled context.  This works by adding a ->cancel_injection() operation
that undoes an injection in case we were not able to actually enter the guest
(this condition could never happen with atomic injection).

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c