[Spice-commits] Branch 'usb.1' - docs/usb2.txt

Gerd Hoffmann kraxel at kemper.freedesktop.org
Fri Dec 3 16:02:48 PST 2010

 docs/usb2.txt |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

New commits:
commit 160cf58468a1193fda8582121230dba0e7e7c2d6
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Sat Dec 4 01:01:44 2010 +0100

    usb: ehci quickstart

diff --git a/docs/usb2.txt b/docs/usb2.txt
new file mode 100644
index 0000000..712a19a
--- /dev/null
+++ b/docs/usb2.txt
@@ -0,0 +1,38 @@
+USB 2.0 Quick Start
+The QEMU EHCI Adapter does *not* support companion controllers.  That
+implies there are two completely separate USB busses: One USB 1.1 bus
+driven by the UHCI controller and one USB 2.0 bus driven by the EHCI
+controller.  Devices must be attached to the correct controller
+The '-usb' switch will make qemu create the UHCI controller as part of
+the PIIX3 chipset.  The USB 1.1 bus will carry the name "usb.0".
+You can use the standard -device switch to add a EHCI controller to
+your virtual machine.  It is strongly recommended to specify an ID for
+the controller so the USB 2.0 bus gets a individual name, for example
+'-device usb-ehci,id=ehci".  This will give you a USB 2.0 bus named
+I strongly recomment to also use -device to attach usb devices because
+you can specify the bus they should be attached to this way.  Here is
+a complete example:
+    qemu -M pc ${otheroptions}                           \
+        -usb                                             \
+        -devive usb-ehci,id=ehci                         \
+        -device usb-tablet,bus=usb.0                     \
+        -device usb-storage,bus=ehci.0,drive=usbstick    \
+        -drive id=none,id=usbstick,file=/path/to/image
+This attaches a usb tablet to the UHCI adapter and a usb mass storage
+device to the EHCI adapter.
+  Gerd
+Gerd Hoffmann <kraxel at redhat.com>

More information about the Spice-commits mailing list