All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nivedita Singhvi <niv@us.ibm.com>
To: Harry Butterworth <harry@hebutterworth.freeserve.co.uk>
Cc: maw48@cl.cam.ac.uk, xen-devel@lists.sourceforge.net
Subject: Re: USB virt port to 2.6 status
Date: Wed, 09 Mar 2005 07:22:20 -0800	[thread overview]
Message-ID: <422F14AC.1070206@us.ibm.com> (raw)
In-Reply-To: <1109958088.21640.36.camel@vaughan.hursley.ibm.com>

Harry Butterworth wrote:

> I created a new bus device to represent a virtual bus where each USB
> back-end will be represented as a device.

[Harry, not sure I understood your scheme fully, so excuse a few
dumb questions]

I'm assuming that means: real USB Device = 1 backend?

Does this need to remain USB specific or could this
virtual bus be generalized to include a broader range
of devices?

> I created a new device for the above bus to represent a USB back-end.

So this is something present only on dom0/driver domains?
I'm a little confused by what the guest domains (front-end
domains) see as a device(?).

> I created a new driver to drive instances of the above devices. The
> driver creates a new virtual USB host controller for each device
> instance (i.e. one per back-end). The virtual USB host controller is
> created using the USB hc_driver interface which is new to 2.6 and
> eliminates redundancy in the host controller driver implementations.
> 
> This framework is all present in a single loadable module and currently
> loads into 2.6, installs the bus and driver and a dummy device, the

Also works compiled into the kernel?

> driver gets matched to the device and successfully creates a virtual USB
> host controller. All the objects appear in sysfs OK.
> 
> Next step is to create a test machine with a 2.4 dom0 and working USB
> devices and construct the 2.6 front end within the new 2.6 framework by
> porting forwards the remaining function from the 2.4 code.

Will 2.4 backends be compatible with your new 2.6 frontends?

> After that I'll work on the 2.6 back end which I expect to be easier.

Did you mean 2.6 backend (which you said you had) or 2.4?

> I'm expecting to have to make changes to this new code for the new
> persistent store mechanism for discovery and hotplug. Specifically, I'm
> expecting that the new bus device will probably be moved out of the usb
> front end driver and made common between all xen virtualised devices and
> that this bus will perform discovery using the persistent store.

Ah, good. Is anyone working on a new virtual bus infrastructure?

> Once I'm done with both the 2.6 back and front end code I'll look at
> commoning up code between the 2.4 and 2.6 drivers.

The expectation is that all the following permutations:
	2.4 be <-> 2.4 fe
	2.6 be <-> 2.4 fe
	2.4 be <-> 2.6 fe
	2.6 be <-> 2.6 fe

will work?

> Any comments on approach etc welcome.

Very interesting so far, Harry.

thanks,
Nivedita



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  reply	other threads:[~2005-03-09 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04 17:41 USB virt port to 2.6 status Harry Butterworth
2005-03-09 15:22 ` Nivedita Singhvi [this message]
2005-03-09 15:28   ` Mark Williamson
2005-03-09 17:24     ` Harry Butterworth

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=422F14AC.1070206@us.ibm.com \
    --to=niv@us.ibm.com \
    --cc=harry@hebutterworth.freeserve.co.uk \
    --cc=maw48@cl.cam.ac.uk \
    --cc=xen-devel@lists.sourceforge.net \
    /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.