From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Xen spinlock questions
Date: Tue, 12 Aug 2008 09:33:10 -0700 [thread overview]
Message-ID: <48A1BB46.2080304@goop.org> (raw)
In-Reply-To: <C4C70FD5.25582%keir.fraser@eu.citrix.com>
Keir Fraser wrote:
> On 11/8/08 19:49, "Jeremy Fitzhardinge" <jeremy@goop.org> wrote:
>
>
>> Keir Fraser wrote:
>>
>>> That's right. The hypercall returns if any event is delivered to the vcpu,
>>> or if any port in the poll set is pending. The fact we don't clear the vcpu
>>> from the poll_mask if unblocked for event delivery isn't a correctness
>>> issue, but it will cause unnecessary extra work in future invocations of
>>> evtchn_set_pending(). Perhaps vcpu_unblock() should clear it.
>>>
>>>
>> That seems reasonable. In this use-case, it's quite likely that if the
>> poll is interrupted by event delivery, on return it will find that the
>> spinlock is now free and never re-enter the poll.
>>
>
> Attached is a new version of the patch which clears the vcpu from poll_mask
> when it is unblocked for any reason. Jan: please can you give this one a
> spin if you get time.
>
Forgot to attach?
J
next prev parent reply other threads:[~2008-08-12 16:33 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 10:18 Xen spinlock questions Jan Beulich
2008-08-04 10:24 ` Keir Fraser
2008-08-11 12:22 ` Jan Beulich
2008-08-11 12:25 ` Keir Fraser
2008-08-11 14:41 ` Keir Fraser
2008-08-11 18:11 ` Jeremy Fitzhardinge
2008-08-11 18:31 ` Keir Fraser
2008-08-11 18:49 ` Jeremy Fitzhardinge
2008-08-12 9:00 ` Keir Fraser
2008-08-12 16:33 ` Jeremy Fitzhardinge [this message]
2008-08-12 17:00 ` Keir Fraser
2008-08-15 12:15 ` Jan Beulich
2008-08-15 13:01 ` Keir Fraser
2008-08-15 14:06 ` Jan Beulich
2008-08-18 10:01 ` Keir Fraser
2008-08-15 17:12 ` Jeremy Fitzhardinge
2008-08-11 18:10 ` Jeremy Fitzhardinge
2008-08-13 7:17 ` Jan Beulich
2008-08-04 19:36 ` Jeremy Fitzhardinge
2008-08-05 6:32 ` Jan Beulich
2008-08-05 7:33 ` Keir Fraser
2008-08-05 18:09 ` Jeremy Fitzhardinge
2008-08-06 7:15 ` Jan Beulich
2008-08-06 8:47 ` Jeremy Fitzhardinge
2008-08-06 9:35 ` Jan Beulich
2008-08-06 17:53 ` Jeremy Fitzhardinge
2008-08-06 20:21 ` Jeremy Fitzhardinge
2008-08-07 7:21 ` Jan Beulich
2008-08-07 15:47 ` Jeremy Fitzhardinge
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=48A1BB46.2080304@goop.org \
--to=jeremy@goop.org \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.