diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 36c3704bfa7c..91ae127f4ac5 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -901,10 +901,20 @@ static inline void kvm_free_irq_routing(struct kvm *kvm) {} | |||
| 901 | #ifdef CONFIG_HAVE_KVM_EVENTFD | 901 | #ifdef CONFIG_HAVE_KVM_EVENTFD |
| 902 | 902 | ||
| 903 | void kvm_eventfd_init(struct kvm *kvm); | 903 | void kvm_eventfd_init(struct kvm *kvm); |
| 904 | int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args); | ||
| 905 | |||
| 906 | #ifdef CONFIG_HAVE_KVM_IRQCHIP | ||
| 904 | int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args); | 907 | int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args); |
| 905 | void kvm_irqfd_release(struct kvm *kvm); | 908 | void kvm_irqfd_release(struct kvm *kvm); |
| 906 | void kvm_irq_routing_update(struct kvm *, struct kvm_irq_routing_table *); | 909 | void kvm_irq_routing_update(struct kvm *, struct kvm_irq_routing_table *); |
| 907 | int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args); | 910 | #else |
| 911 | static inline int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) | ||
| 912 | { | ||
| 913 | return -EINVAL; | ||
| 914 | } | ||
| 915 | |||
| 916 | static inline void kvm_irqfd_release(struct kvm *kvm) {} | ||
| 917 | #endif | ||
| 908 | 918 | ||
| 909 | #else | 919 | #else |
| 910 | 920 | ||
