]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - include/linux/kvm_host.h
Merge branch 'for-upstream' of https://github.com/agraf/linux-2.6 into queue
[can-eth-gw-linux.git] / include / linux / kvm_host.h
index 36c3704bfa7cd7eaaeb69f9976b3d44baec150b3..91ae127f4ac57ba5dd08da48095b906f526bad4b 100644 (file)
@@ -901,10 +901,20 @@ static inline void kvm_free_irq_routing(struct kvm *kvm) {}
 #ifdef CONFIG_HAVE_KVM_EVENTFD
 
 void kvm_eventfd_init(struct kvm *kvm);
+int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args);
+
+#ifdef CONFIG_HAVE_KVM_IRQCHIP
 int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args);
 void kvm_irqfd_release(struct kvm *kvm);
 void kvm_irq_routing_update(struct kvm *, struct kvm_irq_routing_table *);
-int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args);
+#else
+static inline int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args)
+{
+       return -EINVAL;
+}
+
+static inline void kvm_irqfd_release(struct kvm *kvm) {}
+#endif
 
 #else