diff options
author | Christoph Hellwig <hch@lst.de> | 2010-12-16 19:36:43 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-12-17 16:11:03 +0100 |
commit | ea3bd56f56822350bbb91518b3d786948f573359 (patch) | |
tree | ce5da39decfbf43ca98d7a836043bfc86ab147c8 /hw/scsi-defs.h | |
parent | bb8bf76fb1c4afa116a7f11fee559b3cca671a4a (diff) | |
download | qemu-ea3bd56f56822350bbb91518b3d786948f573359.tar.gz qemu-ea3bd56f56822350bbb91518b3d786948f573359.tar.bz2 qemu-ea3bd56f56822350bbb91518b3d786948f573359.zip |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h index 1473ecbddc..413cce07b5 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 |