diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ea53b04993f2..ded64cb3a081 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -395,7 +395,6 @@ struct kvm { | |||
| 395 | * Update side is protected by irq_lock. | 395 | * Update side is protected by irq_lock. |
| 396 | */ | 396 | */ |
| 397 | struct kvm_irq_routing_table __rcu *irq_routing; | 397 | struct kvm_irq_routing_table __rcu *irq_routing; |
| 398 | struct hlist_head mask_notifier_list; | ||
| 399 | #endif | 398 | #endif |
| 400 | #ifdef CONFIG_HAVE_KVM_IRQFD | 399 | #ifdef CONFIG_HAVE_KVM_IRQFD |
| 401 | struct hlist_head irq_ack_notifier_list; | 400 | struct hlist_head irq_ack_notifier_list; |
| @@ -447,6 +446,14 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu); | |||
| 447 | int __must_check vcpu_load(struct kvm_vcpu *vcpu); | 446 | int __must_check vcpu_load(struct kvm_vcpu *vcpu); |
| 448 | void vcpu_put(struct kvm_vcpu *vcpu); | 447 | void vcpu_put(struct kvm_vcpu *vcpu); |
| 449 | 448 | ||
| 449 | #ifdef __KVM_HAVE_IOAPIC | ||
| 450 | void kvm_vcpu_request_scan_ioapic(struct kvm *kvm); | ||
| 451 | #else | ||
| 452 | static inline void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) | ||
| 453 | { | ||
| 454 | } | ||
| 455 | #endif | ||
| 456 | |||
| 450 | #ifdef CONFIG_HAVE_KVM_IRQFD | 457 | #ifdef CONFIG_HAVE_KVM_IRQFD |
| 451 | int kvm_irqfd_init(void); | 458 | int kvm_irqfd_init(void); |
| 452 | void kvm_irqfd_exit(void); | 459 | void kvm_irqfd_exit(void); |
| @@ -736,19 +743,6 @@ struct kvm_assigned_dev_kernel { | |||
| 736 | struct pci_saved_state *pci_saved_state; | 743 | struct pci_saved_state *pci_saved_state; |
| 737 | }; | 744 | }; |
| 738 | 745 | ||
| 739 | struct kvm_irq_mask_notifier { | ||
| 740 | void (*func)(struct kvm_irq_mask_notifier *kimn, bool masked); | ||
| 741 | int irq; | ||
| 742 | struct hlist_node link; | ||
| 743 | }; | ||
| 744 | |||
| 745 | void kvm_register_irq_mask_notifier(struct kvm *kvm, int irq, | ||
| 746 | struct kvm_irq_mask_notifier *kimn); | ||
| 747 | void kvm_unregister_irq_mask_notifier(struct kvm *kvm, int irq, | ||
| 748 | struct kvm_irq_mask_notifier *kimn); | ||
| 749 | void kvm_fire_mask_notifiers(struct kvm *kvm, unsigned irqchip, unsigned pin, | ||
| 750 | bool mask); | ||
| 751 | |||
| 752 | int kvm_irq_map_gsi(struct kvm *kvm, | 746 | int kvm_irq_map_gsi(struct kvm *kvm, |
| 753 | struct kvm_kernel_irq_routing_entry *entries, int gsi); | 747 | struct kvm_kernel_irq_routing_entry *entries, int gsi); |
| 754 | int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin); | 748 | int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin); |
