[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49F6DB9D.3080501@novell.com>
Date: Tue, 28 Apr 2009 06:34:05 -0400
From: Gregory Haskins <ghaskins@...ell.com>
To: Avi Kivity <avi@...hat.com>
CC: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
davidel@...ilserver.org
Subject: Re: [KVM PATCH v2 2/2] kvm: add support for irqfd via eventfd-notification
interface
Avi Kivity wrote:
> 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.
Well, only if we expect the fd to have eventfd semantics. There are
advantages to doing so, as we have discussed, because things like AIO
can polymorhpically signal an interrupt without even knowing whats
behind the eventfd. But this isn't a strict requirement to support
AIO. Really all we need is a way for both kernel and userspace to
signal. Perhaps I should export an "irqfd_signal()" function from kvm,
which today will map to eventfd_signal(), and tomorrow to ??. I don't
think using f_ops->write() is an option for in-kernel signaling, so we
need some kind of interface here.
Does that sound reasonable?
-Greg
Download attachment "signature.asc" of type "application/pgp-signature" (267 bytes)
Powered by blists - more mailing lists