Enable NMI support for user space irqchip
commit841d7ec68d29ca38262757dddcfce146bbdd1443
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 26 Sep 2008 07:30:58 +0000 (26 09:30 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 30 Sep 2008 21:45:19 +0000 (1 00:45 +0300)
tree9245e2999cb81b0e79357895abc32b235ecadef0
parent9ac354f401c0af1af933191566925e483b5e9338
Enable NMI support for user space irqchip

Make use of the new KVM_NMI IOCTL to push NMIs into the KVM guest if the
user space APIC emulation or some other source raised them.

In order to use the 'nmi' monitor command which asynchroniously injects
NMIs for the given CPU, a new service called kvm_inject_interrupt is
required. This will invoke cpu_interrupt on the target VCPU, working
around the fact that the QEMU service is not thread-safe.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/libkvm/libkvm.c
kvm/libkvm/libkvm.h
monitor.c
qemu-kvm-x86.c
qemu-kvm.c
qemu-kvm.h