diff options
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 983b0bdeb3ff..6ec9fc56a49e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -155,6 +155,7 @@ struct kvm { | |||
155 | spinlock_t lock; | 155 | spinlock_t lock; |
156 | struct list_head items; | 156 | struct list_head items; |
157 | } irqfds; | 157 | } irqfds; |
158 | struct list_head ioeventfds; | ||
158 | #endif | 159 | #endif |
159 | struct kvm_vm_stat stat; | 160 | struct kvm_vm_stat stat; |
160 | struct kvm_arch arch; | 161 | struct kvm_arch arch; |
@@ -528,19 +529,24 @@ static inline void kvm_free_irq_routing(struct kvm *kvm) {} | |||
528 | 529 | ||
529 | #ifdef CONFIG_HAVE_KVM_EVENTFD | 530 | #ifdef CONFIG_HAVE_KVM_EVENTFD |
530 | 531 | ||
531 | void kvm_irqfd_init(struct kvm *kvm); | 532 | void kvm_eventfd_init(struct kvm *kvm); |
532 | int kvm_irqfd(struct kvm *kvm, int fd, int gsi, int flags); | 533 | int kvm_irqfd(struct kvm *kvm, int fd, int gsi, int flags); |
533 | void kvm_irqfd_release(struct kvm *kvm); | 534 | void kvm_irqfd_release(struct kvm *kvm); |
535 | int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args); | ||
534 | 536 | ||
535 | #else | 537 | #else |
536 | 538 | ||
537 | static inline void kvm_irqfd_init(struct kvm *kvm) {} | 539 | static inline void kvm_eventfd_init(struct kvm *kvm) {} |
538 | static inline int kvm_irqfd(struct kvm *kvm, int fd, int gsi, int flags) | 540 | static inline int kvm_irqfd(struct kvm *kvm, int fd, int gsi, int flags) |
539 | { | 541 | { |
540 | return -EINVAL; | 542 | return -EINVAL; |
541 | } | 543 | } |
542 | 544 | ||
543 | static inline void kvm_irqfd_release(struct kvm *kvm) {} | 545 | static inline void kvm_irqfd_release(struct kvm *kvm) {} |
546 | static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) | ||
547 | { | ||
548 | return -ENOSYS; | ||
549 | } | ||
544 | 550 | ||
545 | #endif /* CONFIG_HAVE_KVM_EVENTFD */ | 551 | #endif /* CONFIG_HAVE_KVM_EVENTFD */ |
546 | 552 | ||