summary refs log tree commit diff stats
path: root/docs/qdev-device-use.txt
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-01-24 15:35:00 +0000
committerKevin Wolf <kwolf@redhat.com>2011-01-24 21:39:22 +0100
commit6bb7b86722c6cc772f66cdc7923dec56e8458c29 (patch)
treebdc273a92a4dcae71b91094fc5b43d89255b8b4c /docs/qdev-device-use.txt
parent2d1fd2613769d99e5fad1f57ab8466434e2079fd (diff)
downloadfocaccia-qemu-6bb7b86722c6cc772f66cdc7923dec56e8458c29.tar.gz
focaccia-qemu-6bb7b86722c6cc772f66cdc7923dec56e8458c29.zip
usb-msd: Propagate removable bit to SCSI device
USB Mass Storage Devices sometimes have the RMB (removable) bit set in
the SCSI INQUIRY response.  Thumbdrives tend to have the bit set whereas
hard disks do not.

Operating systems differentiate between removable devices and fixed
devices.  Under Linux, the anaconda installer looks for removable
devices.  Under Windows, only fixed devices may have more than one
partition and AutoRun is also affected by the removable bit.

For these reasons, allow USB Mass Storage Devices to override the
removable bit:

qemu -usb
     -drive if=none,file=test.img,cache=none,id=disk0
     -device usb-storage,drive=disk0,removable=on

The default is off.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'docs/qdev-device-use.txt')
0 files changed, 0 insertions, 0 deletions