|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
|
|
#include "iodev.h"
|
|
#include "iodev.h"
|
|
|
|
|
|
|
|
-#ifdef __KVM_HAVE_IOAPIC
|
|
|
|
|
|
|
+#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
|
|
|
/*
|
|
/*
|
|
|
* --------------------------------------------------------------------
|
|
* --------------------------------------------------------------------
|
|
|
* irqfd: Allows an fd to be used to inject an interrupt to the guest
|
|
* irqfd: Allows an fd to be used to inject an interrupt to the guest
|
|
@@ -433,7 +433,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
|
|
|
void
|
|
void
|
|
|
kvm_eventfd_init(struct kvm *kvm)
|
|
kvm_eventfd_init(struct kvm *kvm)
|
|
|
{
|
|
{
|
|
|
-#ifdef __KVM_HAVE_IOAPIC
|
|
|
|
|
|
|
+#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
|
|
|
spin_lock_init(&kvm->irqfds.lock);
|
|
spin_lock_init(&kvm->irqfds.lock);
|
|
|
INIT_LIST_HEAD(&kvm->irqfds.items);
|
|
INIT_LIST_HEAD(&kvm->irqfds.items);
|
|
|
INIT_LIST_HEAD(&kvm->irqfds.resampler_list);
|
|
INIT_LIST_HEAD(&kvm->irqfds.resampler_list);
|
|
@@ -442,7 +442,7 @@ kvm_eventfd_init(struct kvm *kvm)
|
|
|
INIT_LIST_HEAD(&kvm->ioeventfds);
|
|
INIT_LIST_HEAD(&kvm->ioeventfds);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#ifdef __KVM_HAVE_IOAPIC
|
|
|
|
|
|
|
+#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
|
|
|
/*
|
|
/*
|
|
|
* shutdown any irqfd's that match fd+gsi
|
|
* shutdown any irqfd's that match fd+gsi
|
|
|
*/
|
|
*/
|