]> git.proxmox.com Git - qemu.git/commit - usb-linux.c
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)
commit9056a2972a9e935198e518c37365513a199ae3d0
treeb76f4232a75e4ed1e39f8e04de92f720019f3dda
parent5557d820817028603d8a1446b0ddb62f7d267510
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