aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h22
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);
447int __must_check vcpu_load(struct kvm_vcpu *vcpu); 446int __must_check vcpu_load(struct kvm_vcpu *vcpu);
448void vcpu_put(struct kvm_vcpu *vcpu); 447void vcpu_put(struct kvm_vcpu *vcpu);
449 448
449#ifdef __KVM_HAVE_IOAPIC
450void kvm_vcpu_request_scan_ioapic(struct kvm *kvm);
451#else
452static 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
451int kvm_irqfd_init(void); 458int kvm_irqfd_init(void);
452void kvm_irqfd_exit(void); 459void 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
739struct 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
745void kvm_register_irq_mask_notifier(struct kvm *kvm, int irq,
746 struct kvm_irq_mask_notifier *kimn);
747void kvm_unregister_irq_mask_notifier(struct kvm *kvm, int irq,
748 struct kvm_irq_mask_notifier *kimn);
749void kvm_fire_mask_notifiers(struct kvm *kvm, unsigned irqchip, unsigned pin,
750 bool mask);
751
752int kvm_irq_map_gsi(struct kvm *kvm, 746int 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);
754int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin); 748int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin);