public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Davide Libenzi <davidel@xmailserver.org>,
	mtosatti@redhat.com, kvm@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCHv2 1/3] eventfd: allow atomic read and waitqueue remove
Date: Sun, 24 Jan 2010 13:06:36 +0200	[thread overview]
Message-ID: <4B5C29BC.4050109@redhat.com> (raw)
In-Reply-To: <20100121180250.GJ16707@redhat.com>

On 01/21/2010 08:02 PM, Michael S. Tsirkin wrote:
> On Thu, Jan 21, 2010 at 07:57:22PM +0200, Avi Kivity wrote:
>    
>> On 01/21/2010 07:56 PM, Avi Kivity wrote:
>>      
>>> On 01/21/2010 07:45 PM, Michael S. Tsirkin wrote:
>>>        
>>>>          
>>>>> But you're in process context.  An eventfd never blocks.
>>>>>            
>>>> Yes it blocks if counter is 0. And we don't know
>>>> it's not 0 unless we read :) catch-22.
>>>>          
>>> Ah yes, I forgot.
>>>
>>>        
>> Well, you can poll it and then read it... this introduces a new race (if
>> userspace does a read in parallel) but it's limited to kvm and buggy
>> userspace.
>>      
> I would rather not require that userspace never reads this fd.
> You are right that it does not now, but adding this as requirement
> looks like exporting an implementation bug to userspace.
>    

Well, I don't like risking 2.6.32 non-kvm users for a bug that doesn't 
happen in practice now.

After it gets some time in 2.6.33, we can backport it to 2.6.32 (since 
that will be maintained long term).

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-01-24 11:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 16:26 [PATCHv2 1/3] eventfd: allow atomic read and waitqueue remove Michael S. Tsirkin
2010-01-21 16:58 ` Davide Libenzi
2010-01-21 17:13   ` Avi Kivity
2010-01-21 17:14     ` Avi Kivity
2010-01-21 17:23     ` Michael S. Tsirkin
2010-01-21 17:33       ` Avi Kivity
2010-01-21 17:32         ` Michael S. Tsirkin
2010-01-21 17:47           ` Avi Kivity
2010-01-21 17:45             ` Michael S. Tsirkin
2010-01-21 17:56               ` Avi Kivity
2010-01-21 17:57                 ` Avi Kivity
2010-01-21 18:02                   ` Michael S. Tsirkin
2010-01-24 11:06                     ` Avi Kivity [this message]
2010-01-21 17:50             ` Davide Libenzi
2010-01-21 17:50               ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B5C29BC.4050109@redhat.com \
    --to=avi@redhat.com \
    --cc=davidel@xmailserver.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox