All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
Cc: Xen Developers <xen-devel@lists.xensource.com>,
	Julian Chesterfield <julian.chesterfield@cl.cam.ac.uk>
Subject: Re: [PATCH] Blktap: Userspace file-based image support. (RFC)
Date: Mon, 19 Jun 2006 14:51:04 -0500	[thread overview]
Message-ID: <44970028.4080205@us.ibm.com> (raw)
In-Reply-To: <eacc82a40606191226p60d6267sc6a71970863d01ca@mail.gmail.com>

Andrew Warfield wrote:
>> A very much like the idea of a userspace block device backend.  Have you
>> considered what it would take to completely replace blkback with a
>> userspace backend?  I'm also curious why you choose a character device
>> to interact with the ring queue instead of just attaching to the ring
>> queue directly in userspace.
>
> Oops (again), missed answering your char device question.  We just use
> a char device to pin up a region of virtual address space for each
> disk as it's presented in userspace.

Is this strictly needed though?  My current understanding (which may be 
totally off) of this device is that it contains:

 - first page is ring/queue
 - rest of file is mmap()'able and as requests come in over the blkfront 
queue, you map them into that address space
 - poll/ioctl is used for event channel notification

Couldn't you do all of this in pure userspace though with privcmd and 
evtchn?

Regards,

Anthony Liguori

>   Anyone familiar with blkback
> will recognise the technique.  In our case, the first page is a
> request/response ring between tap driver and application, and the
> remainder is a sparsely populated address space where data pages are
> mapped as they fly through.  We signal down with ioctl()s, and up
> using poll().
>
> a.

  reply	other threads:[~2006-06-19 19:51 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19 16:19 [PATCH] Blktap: Userspace file-based image support. (RFC) Andrew Warfield
2006-06-19 16:51 ` NAHieu
2006-06-19 17:22   ` Andrew Warfield
2006-06-19 18:41     ` NAHieu
2006-06-19 21:07       ` Andrew Warfield
2006-06-19 21:16     ` Dan Smith
2006-06-19 18:55 ` Anthony Liguori
2006-06-19 19:22   ` Andrew Warfield
2006-06-19 19:26   ` Andrew Warfield
2006-06-19 19:51     ` Anthony Liguori [this message]
2006-06-19 19:15 ` Anthony Liguori
2006-06-19 19:31   ` Andrew Warfield
2006-06-29  3:35 ` Rusty Russell
2006-06-29  5:24   ` Andrew Warfield
2006-06-29  6:31     ` Rusty Russell
2006-06-29 14:34       ` Andrew Warfield
2006-06-30 13:35         ` Stephen C. Tweedie
2006-06-30 14:17           ` Julian Chesterfield
2006-06-30 18:41             ` Jeff Moyer
2006-06-29 11:49   ` Anthony Liguori
2006-06-29 12:26     ` Laurent Vivier
     [not found] <C0BCD26E.5C31%julian@xensource.com>
2006-06-19 21:42 ` Julian Chesterfield
2006-06-19 21:56   ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2006-06-20 11:07 [PATCH] Blktap: Userspace file-based image support.(RFC) Ian Pratt
2006-06-20 21:10 ` Dan Smith
2006-06-21 14:45   ` Anthony Liguori
2006-06-30 13:41   ` Stephen C. Tweedie
2006-06-30 14:17     ` Dan Smith
2006-06-30 19:37       ` Stephen C. Tweedie
2006-06-30 20:06         ` Dan Smith
2006-06-30 22:15           ` Jerone Young
2006-07-01  0:36             ` Mark Williamson
2006-07-01 14:22               ` Dan Smith
2006-07-03 11:00                 ` Mark Williamson
2006-07-03 14:52             ` Stephen C. Tweedie
2006-07-03 12:02         ` Harry Butterworth
2006-07-03 14:56           ` Stephen C. Tweedie
2006-07-03 15:40             ` Harry Butterworth
2006-07-04 19:39               ` Andrew Warfield
2006-07-05  0:25                 ` Dan Smith
2006-07-05  0:48                   ` Andrew Warfield
2006-07-05  1:40                 ` Harry Butterworth
     [not found] <C0BD844E.5C4D%julian@xensource.com>
2006-06-20 13:44 ` [PATCH] Blktap: Userspace file-based image support. (RFC) Julian Chesterfield
     [not found] <C0BDB8FE.5C5D%julian@xensource.com>
2006-06-20 13:57 ` Julian Chesterfield

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=44970028.4080205@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=andrew.warfield@cl.cam.ac.uk \
    --cc=julian.chesterfield@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.