aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-03-04 14:45:44 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-06 23:05:59 +0100
commit99aba0c41b6e817661ddf2ad90111c2d8af00050 (patch)
treeb6c3c07e0a4eaafbbaffa3bdebd546ef72444c7c /hw
parentbba7be962e3d95830cf8de91257a9d60f855cd87 (diff)
scsi: update comment on the standards revision
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r--hw/scsi-disk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index b2f61fea26..bf7efc0bbe 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -460,8 +460,12 @@ static int scsi_disk_emulate_inquiry(SCSIRequest *req, uint8_t *outbuf)
}
memcpy(&outbuf[8], "QEMU ", 8);
memcpy(&outbuf[32], s->version ? s->version : QEMU_VERSION, 4);
- /* Identify device as SCSI-3 rev 1.
- Some later commands are also implemented. */
+ /*
+ * We claim conformance to SPC-3, which is required for guests
+ * to ask for modern features like READ CAPACITY(16) or the
+ * block characteristics VPD page by default. Not all of SPC-3
+ * is actually implemented, but we're good enough.
+ */
outbuf[2] = 5;
outbuf[3] = 2; /* Format 2 */