Re: [KVM PATCH v2 2/2] kvm: add support for irqfd via eventfd-notification interface

Avi Kivity
2009-04-28T09:35:56Z

Gregory Haskins wrote:

>> Sure, the interface remains the same (write 8 bytes), but the
>> implementation can change. For example, we can implement it to work
>> from interrupt context, once we hack the locking appropriately.
>>
>
> I was thinking more along the lines of eventfd_signal(). AIO and vbus
> currently use this interface, as opposed to the more polymorhpic
> f_ops->write().
>
>

But eventfd_signal basically marries us to eventfd.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.