/* SPDX-License-Identifier: GPL-2.0-only */ /* * * irqfd: Allows an fd to be used to inject an interrupt to the guest * Credit goes to Avi Kivity for the original idea. */ #ifndef __LINUX_KVM_IRQFD_H #define __LINUX_KVM_IRQFD_H #include <linux/kvm_host.h> #include <linux/poll.h> /* * Resampling irqfds are a special variety of irqfds used to emulate * level triggered interrupts. The interrupt is asserted on eventfd * trigger. On acknowledgment through the irq ack notifier, the * interrupt is de-asserted and userspace is notified through the * resamplefd. All resamplers on the same gsi are de-asserted * together, so we don't need to track the state of each individual * user. We can also therefore share the same irq source ID. */ struct kvm_kernel_irqfd_resampler { … }; struct kvm_kernel_irqfd { … }; #endif /* __LINUX_KVM_IRQFD_H */