>>>>> "Ming" == Ming Lei <ming.lei@xxxxxxxxxxxxx> writes: Ming, Ming> QEMU SCSI device claims to support UNMAP, WRITE SAME and WRITE Ming> SAME 16 in LBP VPD page, but only provides "Maximum unmap LBA Ming> count" in block limits VPD page, and "Maximum write same length" Ming> isn't set. That really sounds like a problem that should be fixed in QEMU SCSI. Ming> The default max_discard_sectors(SD_MAX_WS16_BLOCKS) can't work at Ming> all since it is much bigger than the actual Maximum unmap LBA Ming> count. There is absolutely no correlation between max write same blocks and max unmap blocks. They are two entirely different commands. If QEMU SCSI advertises support for WRITE SAME(16) and does not report a cap in the block limits VPD then we must expect that it supports the maximum number of blocks that can be expressed by the command. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html