From: Paul Brook <paul@codesourcery.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org
Subject: Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?
Date: Wed, 1 Dec 2010 12:12:34 +0000 [thread overview]
Message-ID: <201012011212.34772.paul@codesourcery.com> (raw)
In-Reply-To: <4CF63641.6050609@redhat.com>
> >>>> usb_add net:192.168.1.100:2222:[vid]:[pid]
> >>>> or:
> >>>> usb_add net:192.168.1.100:2222:[busnr]:[addr]
> > ...
> > Instead I suggest just using a freeform string ID. For practical reasons
> > we probably want to restrict this to regular characters, like we do
> > other ids (i.e. [-_A-Za-z0-9]). This allows the device server to assign
> > persistent, meaningful names to devices. If you really want to allow
> > the VM free reign of devices on a machine you can just make it the
> > server accept and parse names of the form device_id_1234_5678 (for
> > example).
> >
> > For bonus points your protocol should include some way of enumerating the
> > available devices.
>
> First of all management (enumeration, requesting a specific device) is
> something which I want to do separately from the usb redirection protocol
> itself as management is transport specific, see below.
Except that by having a way of specifying the remote device you are implicitly
including some form management interface. However...
> Thinking more about this, the solution to the whole device id problem
> is not sending a device id from qemu / the monitor at all, iow:
> net:<host:port>:[device_id]
>
> Becomes just:
> net:<host:port>
>
> In this scenario a server already needs to be started manually on the
> usb-host, the device / port to share can then be indicated when starting
> the server.
This sounds reasonable.
On a tangential note, it's worth considering whether we want to support
passthrough of a hub (including all connected devices).
My suspicion is this may be more trouble than it's worth. Instead make this
the responsibility of the management layer. If we want to create the
appearance of a physical hub being connected to a VM, then the management
layer should leave the hub itself alone and automatically passthrough all the
individual downstream devices.
Paul
next prev parent reply other threads:[~2010-12-01 12:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20101129101727.2B64E2B679@zimbra14-e2.priv.proxad.net>
2010-11-29 14:33 ` [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice? François Revol
2010-11-29 15:47 ` Gerd Hoffmann
2010-11-29 15:10 ` [Spice-devel] " Frédéric Grelot
2010-11-29 16:35 ` Gerd Hoffmann
2010-11-29 17:37 ` Attila Sukosd
2010-11-29 17:49 ` Anthony Liguori
2010-11-29 18:07 ` Alexander Graf
2010-11-30 8:54 ` Gerd Hoffmann
2010-11-30 11:26 ` Hans de Goede
2010-11-30 11:32 ` Alon Levy
2010-11-30 12:23 ` Hans de Goede
2010-12-01 11:04 ` Paul Brook
2010-12-01 11:49 ` Hans de Goede
2010-12-01 12:12 ` Paul Brook [this message]
2010-11-29 16:05 ` François Revol
2010-12-01 13:34 ` [Libusb-devel] " Peter Stuge
2010-11-29 17:13 ` Paul Brook
2010-11-30 11:07 ` [Qemu-devel] Using usbip for usb network redirection (was RFC: usb redirection over the network, interesting outside of spice?) Hans de Goede
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=201012011212.34772.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=hdegoede@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=spice-devel@lists.freedesktop.org \
/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.