Re: [KVM PATCH v3 2/2] kvm: add support for irqfd viaeventfd-notification interface

From: Al Viro
Date: Sun May 03 2009 - 16:31:40 EST


On Sun, May 03, 2009 at 01:11:39PM -0700, Davide Libenzi wrote:
> On Sun, 3 May 2009, Al Viro wrote:
>
> > IOW, the sane solution would be to export something that returns your
> > struct file *. And stop playing with fd completely.
>
> This builds but it's not tested at all.
>
> - Make all the work of the old anon_inode_getfd(), done by a new
> anon_inode_getfile(), with anon_inode_getfd() using its services
>
> - Make all the work done by sys_eventfd(), done by a new
> eventfd_file_create() (which in turn uses anon_inode_getfile()), with
> sys_eventfd() using its services
>
> IRQfd can use eventfd_file_create(), fget(), get_unused_fd_flags() and
> fd_install() just before returning.
> Is that what you had in mind?

More or less, but I'd like to see the irqfd side of that...
--
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/