]> Git Repo - qemu.git/blobdiff - hw/scsi-disk.c
SCSI emulation: should tell the guest that we actually support thin provisioning
[qemu.git] / hw / scsi-disk.c
index 85a75c4b29ff0943b18b2220a52d227bf6aa5d10..a029ab6e84a7da8476cc88d637d6389b83e2206e 100644 (file)
@@ -628,7 +628,7 @@ static int scsi_disk_emulate_inquiry(SCSIRequest *req, uint8_t *outbuf)
             outbuf[3] = buflen = 8;
             outbuf[4] = 0;
             outbuf[5] = 0x60; /* write_same 10/16 supported */
-            outbuf[6] = 0;
+            outbuf[6] = s->qdev.conf.discard_granularity ? 2 : 1;
             outbuf[7] = 0;
             break;
         }
This page took 0.020694 seconds and 4 git commands to generate.