SCSI emulation: should tell the guest that we actually support thin provisioning
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 19 Apr 2012 10:41:17 +0000 (20:41 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Apr 2012 14:26:29 +0000 (16:26 +0200)
commitf644a2904d5287332e4007f30c105a8622fb3db8
tree5ef01e8eeeeec227e2cc8261689d6198e5c175de
parentc9e4d8284e1f3205aa3c05dc18932f9ca2c05f53
SCSI emulation: should tell the guest that we actually support thin provisioning

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
[Actually, we should report it only if discard_granularity is nonzero.
 Older SBC drafts assigned 0 to thin provisioning and 1 to thick
 (resource-provisioned, they call it).  Newer drafts assign respectively
 1 and 2 - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c