scsi-disk: Allow overriding SCSI INQUIRY removable bit
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 24 Jan 2011 15:34:58 +0000 (15:34 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 20:39:20 +0000 (21:39 +0100)
commit925c6b59ea8cebc6433ac80f8a2115ecd793cef9
tree2b4347a449294ed5f816806de88f8b6da5556644
parentfdde6e80f7cbb3511c9a6c62289494744097cf3a
scsi-disk: Allow overriding SCSI INQUIRY removable bit

Provide the "removable" qdev property bit to override the SCSI INQUIRY
removable (RMB) bit for non-CDROM devices.  This will be used by USB
Mass Storage Devices, which sometimes have this guest-visible bit set
and sometimes do not.  They therefore requires a means for user
configuration.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c