All of lore.kernel.org
 help / color / mirror / Atom feed
From: harry <harry@hebutterworth.freeserve.co.uk>
To: sanjay.kushwaha@gmail.com, mark.williamson@cl.cam.ac.uk,
	xen-devel@lists.xensource.com
Subject: USB virt status
Date: Fri, 11 Nov 2005 19:37:43 +0000	[thread overview]
Message-ID: <1131737863.29624.40.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 2468 bytes --]

Here's the latest USB code.

I've spent a few days testing and fixing bugs and it's now possible to
create and mount a filesystem on a USB key in the FE using this code.

I'm in the middle of debugging a problem where dom0 reboots when
flushing a big file to the USB key.  I didn't manage to find a serial
cable for a serial console this evening so I don't have much to go on
yet.

Since last week I've hooked the claim port call into xenbus such that
the configured port is claimed when the device is probed.  At the moment
the code will generate a 7 port virtual USB hub in the FE for each
configured backend device.  It would probably be better to either put
multiple devices on each FE hub or have single port hubs in the front
end.  I think I prefer the latter approach.

The code doesn't currently support hot-reconfiguration of the mapping
between BE usb ports and FE domains but does support hot plug and unplug
of USB devices into configured ports.

I also fixed a few FIXMEs in the code including checking that port
numbering was consistently one-based and checking that URB serialisation
was maintained correctly.

Remaining work:

o - more testing, fix dom0 reboot issue ASAP.
o - reformat to kernel coding style
o - split patch up into manageable chunks for review and patch
submission
o - run the USB code by the usb mailing list
o - fix remaining FIXMEs in code, error codes in particular.
o - more comments and API documentation

If anyone is interested in trying this out the steps are as follows:

Apply the patch to a recent xen-unstable.
make world
Choose to build the usb frontend and backend drivers either as loadable
modules or in kernel (both seem to work equally well).
Do not enable tracing in the xenidc code or the usb FE or BE (there's
too much tracing).
Configure a usb device in a FE domain config script:

usb = ['path=1']

This means attach whatever device is in the BE USB port specified by the
path (i.e. port 1 in this case) to the FE domain. This will create a USB
HUB in the FE domain and whatever device is attached to the BE port will
get attached to port one of the FE hub.

Boot the FE domain.

Load the modules (unless compiled into the kernel).

Plug a USB device in.

You are supposed to be able to load and unload modules and plug/unplug USB
devices however you like but unloading the backend module sometimes hangs
when unregistering a watch.  I think this is likely to be the deadlock in
xenstore that Rusty described.

[-- Attachment #2: latest-usb-patch.gz --]
[-- Type: application/x-gzip, Size: 86554 bytes --]

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2005-11-11 19:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 19:37 harry [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-11 23:23 USB virt status Ian Pratt
2005-10-30 16:43 Harry Butterworth
     [not found] ` <200511041725.11451.mark.williamson@cl.cam.ac.uk>
     [not found]   ` <1131130680.3019.87.camel@localhost.localdomain>
     [not found]     ` <200511050050.58120.mark.williamson@cl.cam.ac.uk>
2005-11-05  2:21       ` Harry Butterworth
2005-11-05 12:32         ` 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=1131737863.29624.40.camel@localhost.localdomain \
    --to=harry@hebutterworth.freeserve.co.uk \
    --cc=mark.williamson@cl.cam.ac.uk \
    --cc=sanjay.kushwaha@gmail.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.