Skip to contentSkip to conversation

usb: add usb-bot device (scsi bulk-only transport).

PATCH New Gerd Hoffmann 1 participant 1 message Jan 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: add usb-bot device (scsi bulk-only transport).

Basically the same as usb-storage, but without automatic scsi device setup. Also features support for up to 16 LUNs.

---
 docs/usb-storage.txt |   11 ++++++-
 hw/usb/dev-storage.c |   85 +++++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 80 insertions(+), 16 deletions(-)
docs/usb-storage.txt +10 -1
index e58e849..fa93111 100644
@@ -2,7 +2,7 @@
 qemu usb storage emulation
 --------------------------
 
-QEMU has two emulations for usb storage devices.
+QEMU has three devices for usb storage emulation.
 
 Number one emulates the classic bulk-only transport protocol which is
 used by 99% of the usb sticks on the marked today and is called
@@ -31,6 +31,15 @@ with tree logical units:
        -device scsi-cd,bus=uas.0,scsi-id=0,lun=5,drive=uas-cdrom
 
 
+Number three emulates the classic bulk-only transport protocol too.
+It's called "usb-bot".  It shares most code with "usb-storage", and
+the guest will not be able to see the difference.  The qemu command
+line interface is simliar to usb-uas though, i.e. no automatic scsi
+disk creation.  It also features support for up to 16 LUNs.  The LUN
+numbers must be continous, i.e. for three devices you must use 0+1+2.
+The 0+1+5 numbering from the "usb-uas" example isn't going to work
+with "usb-bot".
+
 enjoy,
   Gerd
 
hw/usb/dev-storage.c +70 -15

180 lines not on this page · raw message

Signature · 1 line
1.7.9.7