Re: [PATCH 0/2] eventfd: new EFD_STATE flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 6 Jan 2010, Michael S. Tsirkin wrote:

> On Tue, Sep 01, 2009 at 07:24:24AM -0700, Davide Libenzi wrote:
> > On Tue, 1 Sep 2009, Avi Kivity wrote:
> > 
> > > On 09/01/2009 02:45 AM, Davide Libenzi wrote:
> > > > On Thu, 27 Aug 2009, Davide Libenzi wrote:
> > > > 
> > > >    
> > > > > On Thu, 27 Aug 2009, Michael S. Tsirkin wrote:
> > > > > 
> > > > >      
> > > > > > Oh, I stopped pushing EFD_STATE since we have a solution.
> > > > > >        
> > > > > Do you guys need the kernel-side eventfd_ctx_read() I posted or not?
> > > > > Because if nobody uses it, I'm not going to push it.
> > > > >      
> > > > Guys, I did not get a reply on this. Do you need me to push it, or you're
> > > > not going to use it at the end?
> > > >    
> > > 
> > > We'll use it eventually, but we're still some ways from it.
> > 
> > OK, then bug me when you're going to need it. I won't push it before that.
> > 
> > 
> > - Davide
> 
> So, it turns out that we need this: be thought we don't because
> currently kvm does not zero eventfd counter when it polls eventfd.  But
> this causes spurious interrupts when we disconnect irqfd from kvm and
> re-connect it back.
> 
> However, since kvm does its own thing with the wait queue, and might
> read the counter from wait queue callback (which might be from
> interrupt context), a simpler, lower-level interface would be better for
> us.  Does the following (build tested only) look palatable?

What is wrong with you? :/
There was a patch attached with this email, and yet you did your own, and 
yet again you managed to add an underscore at the beginning of the API 
name, in an API set where there are no leading underscores.
Even if KVM does that for its own reasons, you should be able to fit your 
naming "style" to the interface you're adding your droplets into.
I will post an eventfd_read_ctx() to Andrew ASAP.



- Davide


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux