summaryrefslogtreecommitdiffstats
path: root/hw/scsi-defs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-12-16 19:36:43 +0100
committerKevin Wolf <kwolf@redhat.com>2010-12-17 16:11:03 +0100
commitea3bd56f56822350bbb91518b3d786948f573359 (patch)
treece5da39decfbf43ca98d7a836043bfc86ab147c8 /hw/scsi-defs.h
parentbb8bf76fb1c4afa116a7f11fee559b3cca671a4a (diff)
downloadhqemu-ea3bd56f56822350bbb91518b3d786948f573359.zip
hqemu-ea3bd56f56822350bbb91518b3d786948f573359.tar.gz
scsi-disk: support WRITE SAME (16) with unmap bit
Support discards via the WRITE SAME command with the unmap bit set, and tell the initiator about the support for it via the block limit and the new thin provisioning EVPD pages. Also fix the comment which incorrectly describedthe block limits EVPD page. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi-defs.h')
-rw-r--r--hw/scsi-defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h
index 1473ecb..413cce0 100644
--- a/hw/scsi-defs.h
+++ b/hw/scsi-defs.h
@@ -84,6 +84,7 @@
#define MODE_SENSE_10 0x5a
#define PERSISTENT_RESERVE_IN 0x5e
#define PERSISTENT_RESERVE_OUT 0x5f
+#define WRITE_SAME_16 0x93
#define MAINTENANCE_IN 0xa3
#define MAINTENANCE_OUT 0xa4
#define MOVE_MEDIUM 0xa5
OpenPOWER on IntegriCloud