usb-linux: add hostport property
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 10 May 2011 10:07:42 +0000 (12:07 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 26 May 2011 09:55:02 +0000 (11:55 +0200)
commita1f8b44f13c7897114b16e5a807a85d941561978
treeb76f4232a75e4ed1e39f8e04de92f720019f3dda
parent961e4da26dfc8146c1a3eea21fb68c5ca4a274c0
usb-linux: add hostport property

This patch adds a hostport property which allows to specify the host usb
devices to pass through by bus number and physical port.  This means you
can basically hand over one (or more) of the usb plugs on your host to
the guest and whatever device is plugged in there will show up in the
guest.

Usage:

  -device usb-host,hostbus=1,hostport=1

You can figure the port numbers by plugging in some usb device, then
find it in "info usbhost" and pick bus and port specified there.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux.c