[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/16] SCSI emulation: should tell the guest that we
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 15/16] SCSI emulation: should tell the guest that we actually support thin provisioning |
Date: |
Thu, 19 Apr 2012 16:29:35 +0200 |
From: Ronnie Sahlberg <address@hidden>
Signed-off-by: Ronnie Sahlberg <address@hidden>
[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 <address@hidden>
---
hw/scsi-disk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index 85a75c4..a029ab6 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -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;
}
--
1.7.9.3
- [Qemu-devel] [PATCH 06/16] scsi: make code more homogeneous in AIO callback functions, (continued)
- [Qemu-devel] [PATCH 06/16] scsi: make code more homogeneous in AIO callback functions, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 10/16] scsi: add a started field to SCSIDiskReq, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 07/16] scsi: move scsi_flush_complete around, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 11/16] scsi: support FUA on reads, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 08/16] scsi: add support for FUA on writes, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 09/16] scsi: force unit access on VERIFY, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 13/16] scsi: advertise DPOFUA, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 12/16] scsi: small refactoring of MMC mode-sense, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 16/16] scsi: add SANITIZE command, Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 14/16] SCSI emulation: Support unmap via WRITE_SAME_10., Paolo Bonzini, 2012/04/19
- [Qemu-devel] [PATCH 15/16] SCSI emulation: should tell the guest that we actually support thin provisioning,
Paolo Bonzini <=