From: Anthony Liguori <aliguori@us.ibm.com>
To: Adam Heath <doogie@brainfood.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Mark Williamson <mark.williamson@cl.cam.ac.uk>
Subject: Re: Disk naming (Was Re: [PATCH] Guest boot loadersupport [1/2])
Date: Fri, 15 Apr 2005 15:40:31 -0500 [thread overview]
Message-ID: <426026BF.4030902@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0504151505430.1781@gradall.private.brainfood.com>
Adam Heath wrote:
>Er, no. The blkback allocates it's own id, which is passed around between
>them.
>
>The blkback them maps the id into a handle structure, which then has a void
>*data(or a union, if you want) that maintains a pointer to a filename, or
>reference to a block device, then a function dispatch table that knows how to
>handle the requests.
>
>
Are you suggesting this is how it should work?
In xen-unstable, the control tools communicate through a ring-queue (a
fixed length queue with a maximum message size of 60) to the device
backends and frontends. They do not map any memory (besides the ring
queue).
The virtual block device creation process looks something like this:
1) control tools send a create message through the ring queue to the backend
2) for each virtual block device, control tools send a
BLKIF_BE_VBD_CREATE message to the backend
This message is fixed length (see
/usr/include/xen/io/domain_controller.h--blkif_be_vbd_create_t) and has
two fields for the backend device number (pdevice) and the frontend
device number (vdevice).
When the frontend boots up, it sends the control tools a series of
messages. One of those message contains a share memory handle which the
controls then pass to the backend. The backend maps this memory address
and the frontend and backend use this memory area to do the actual
operations of the block device.
The control tools can only communicate with the backend (right now) via
the ring queue. You can't assume that the tools are in the same domain
as the backend (so you can't just do an ioctl or something to the kernel).
If you wanted to support passing files, you would have to extend the
blkif_be_vbd_create_t structure to communicate a filename. This is the
problem.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2005-04-15 20:40 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 20:43 Disk naming (Was Re: [PATCH] Guest boot loadersupport [1/2]) Ian Pratt
2005-04-14 20:52 ` Jeremy Katz
2005-04-14 21:59 ` Gerd Knorr
2005-04-14 22:10 ` Adam Heath
2005-04-15 1:51 ` Andrew Theurer
2005-04-15 13:32 ` Philip R Auld
2005-04-14 23:24 ` Mark Williamson
2005-04-14 23:42 ` Adam Heath
2005-04-14 23:43 ` Mark Williamson
2005-04-15 16:18 ` Adam Heath
2005-04-15 16:43 ` Mark Williamson
2005-04-15 17:33 ` Adam Heath
2005-04-15 17:33 ` Mark Williamson
2005-04-15 17:55 ` Adam Heath
2005-04-15 17:56 ` Mark Williamson
2005-04-15 20:08 ` Adam Heath
2005-04-15 20:14 ` Mark Williamson
2005-04-15 20:45 ` Anthony Liguori
2005-04-15 18:02 ` Andrew Warfield
2005-04-15 17:57 ` Anthony Liguori
2005-04-15 20:07 ` Adam Heath
2005-04-15 20:16 ` Mark Williamson
2005-04-15 20:46 ` Adam Heath
2005-04-15 20:29 ` Mark Williamson
2005-04-15 21:05 ` Anthony Liguori
2005-04-15 20:40 ` Anthony Liguori [this message]
2005-04-15 20:48 ` Adam Heath
2005-04-15 20:47 ` Anthony Liguori
2005-04-15 13:58 ` Philip R Auld
-- strict thread matches above, loose matches on Subject: below --
2005-04-15 21:44 Disk naming (Was Re: [PATCH] Guest boot loadersupport[1/2]) Ian Pratt
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=426026BF.4030902@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=doogie@brainfood.com \
--cc=mark.williamson@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.