From: NAHieu <nahieu@gmail.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: back/frontend drivers HelloWorld
Date: Sun, 25 Sep 2005 18:38:51 -0700 [thread overview]
Message-ID: <5d7aca950509251838175955e@mail.gmail.com> (raw)
In-Reply-To: <dfdb6eb4c09cf3dab069335441690858@cl.cam.ac.uk>
On 9/25/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 25 Sep 2005, at 17:24, NAHieu wrote:
>
> > - Is that correct? ( I have some doubts about (2), as I see that the
> > drivers available in xen uses xenbus_driver.probe to detect domU's
> > driver?)
>
> All correct, but you skip a few details.
>
> In step 1, domU gets the event channel port via EVTCHNOP_alloc_unbound.
> It then writes that port value to xenstore.
>
> In step 2, dom0 binds to the remote event-channel port via
> EVTCHNOP_bind_interdomain. This returns the allocated local port which
> is what is passed to bind_evtchn_to_irqhandler().
> See code in drivers/xen/blkback/interface.c for a precise example of
> doing this -- probably best to steal that portion of code as a
> template.
>
> Also, you can find code in blkfront/blkback to allocate a shared page
> in blkfront, allocate a grant reference for it, pass that to blkback
> and map the page thru the grant reference.
>
I looked at some frontend code, and they all exploit the xenbus_driver
(and the needed common fields are .ids, .probe and .remove ). So it is
mandatory for all backend/frontend (regardless of real or virtual
device) to do like that ?
Keir, thank you a lot.
Hieu
next prev parent reply other threads:[~2005-09-26 1:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 13:46 back/frontend drivers HelloWorld Anton Korenyushkin
2005-09-22 14:18 ` Keir Fraser
2005-09-23 9:53 ` NAHieu
2005-09-23 10:00 ` Keir Fraser
2005-09-23 11:37 ` NAHieu
2005-09-23 11:54 ` Keir Fraser
2005-09-23 12:37 ` NAHieu
2005-09-23 13:40 ` Keir Fraser
2005-09-24 17:40 ` NAHieu
2005-09-24 19:31 ` Keir Fraser
2005-09-25 16:24 ` NAHieu
2005-09-25 18:56 ` Keir Fraser
2005-09-26 1:38 ` NAHieu [this message]
2005-09-26 7:19 ` Keir Fraser
2005-09-22 16:04 ` Mark Williamson
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=5d7aca950509251838175955e@mail.gmail.com \
--to=nahieu@gmail.com \
--cc=Keir.Fraser@cl.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.