Re: [PATCH v11] kvm: Add resampling irqfds for level triggered interrupts

From: Avi Kivity
Date: Sun Sep 23 2012 - 07:50:34 EST


On 09/21/2012 08:58 PM, Alex Williamson wrote:
> 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.
>

Thanks, applied.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/