From: Steven Smith <sos22-xen@srcf.ucam.org>
To: "John D. Ramsdell" <ramsdell@mitre.org>
Cc: xen-devel@lists.xensource.com, Steven Smith <sos22@cam.ac.uk>,
Grzegorz Milos <gm281@cam.ac.uk>
Subject: Re: [PATCH] Mini-OS to use evtchn_port_t for ports and other improvements
Date: Thu, 27 Jul 2006 10:49:20 +0100 [thread overview]
Message-ID: <20060727094920.GA4241@cam.ac.uk> (raw)
In-Reply-To: <ogtejw99q8n.fsf@divan.mitre.org>
[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]
> > Why maybe_bind? Do you ever expect to need to allocate an unbound
> > event channel before you know what handler to use for it?
> I wanted to capture the usual pattern of immediately binding a port
> after it's allocated, without forcing programmers to follow that
> pattern.
That's not a bad idea, but I'd rather leave this until we have an
example of some actual code which needs it.
> > > + evtchn_port_t port = op.u.bind_interdomain.local_port;
> > > + clear_evtchn(port); /* Without, handler gets invoked now! */
> > Invoking the handler as soon as you bind the interdomain channel is
> > a mostly-deliberate part of the interface. If the other end makes
> > notifications before you get around to binding they can get lost,
> > and forcing the channel to fire as soon as you bind to it avoids
> > some potential lost wakeups.
> It's easy to simulate the case of a handler call on binding with
> clear_evtchn included, but a pain to handle the case in which one
> wants the handler to be invoked only when a notification arrives,
> when it is omitted.
I think you have a point here. Consider my objection withdrawn.
Steven.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2006-07-27 9:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-23 12:33 [PATCH] Mini-OS to use evtchn_port_t for ports and other improvements John D. Ramsdell
2006-07-25 10:27 ` Steven Smith
2006-07-26 0:14 ` John D. Ramsdell
2006-07-27 9:49 ` Steven Smith [this message]
2006-07-27 12:56 ` John D. Ramsdell
2006-07-26 10:00 ` John D. Ramsdell
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=20060727094920.GA4241@cam.ac.uk \
--to=sos22-xen@srcf.ucam.org \
--cc=gm281@cam.ac.uk \
--cc=ramsdell@mitre.org \
--cc=sos22@cam.ac.uk \
--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.