Skip to content
  • Gerd Hoffmann's avatar
    usb: add usb attached scsi emulation · 0f58f68b
    Gerd Hoffmann authored
    
    
    $subject says all.  First cut.
    
    It's a pure UAS (usb attached scsi) emulation, without BOT (bulk-only
    transport) compatibility.  If your guest can't handle it use usb-storage
    instead.
    
    The emulation works like any other scsi hba emulation (eps, lsi, virtio,
    megasas, ...).  It provides just the HBA where you can attach scsi
    devices as you like using '-device'.  A single scsi target with up to
    256 luns is supported.
    
    For now only usb 2.0 transport is supported.  This will change in the
    future though as I plan to use this as playground when codeing up &
    testing usb 3.0 transport and streams support in the qemu usb core and
    the xhci emulation.
    
    No migration support yet.  I'm planning to add usb 3.0 support first as
    this probably requires saving additional state.
    
    Special thanks go to Paolo for bringing the qemu scsi emulation into
    shape, so this can be added nicely without having to touch a single line
    of scsi code.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    0f58f68b