diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-09-21 19:58:03 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-23 13:50:15 +0200 |
commit | 7a84428af7ca6a847f058c9ff244a18a2664fd1b (patch) | |
tree | e6c573c701736a75d618b670d66e98398b62769f /virt/kvm/ioapic.c | |
parent | KVM: optimize apic interrupt delivery (diff) | |
download | linux-7a84428af7ca6a847f058c9ff244a18a2664fd1b.tar.xz linux-7a84428af7ca6a847f058c9ff244a18a2664fd1b.zip |
KVM: Add resampling irqfds for level triggered interrupts
To emulate level triggered interrupts, add a resample option to
KVM_IRQFD. When specified, a new resamplefd is provided that notifies
the user when the irqchip has been resampled by the VM. This may, for
instance, indicate an EOI. Also in this mode, posting of an interrupt
through an irqfd only asserts the interrupt. On resampling, the
interrupt is automatically de-asserted prior to user notification.
This enables level triggered interrupts to be posted and re-enabled
from vfio with no userspace intervention.
All resampling irqfds can make use of a single irq source ID, so we
reserve a new one for this interface.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/ioapic.c')
0 files changed, 0 insertions, 0 deletions