Re: [Qemu-devel] [PATCH 06/11] scsi-disk: correctly implement WRITE SAME

2013-11-13 Thread Paolo Bonzini
Il 13/11/2013 07:18, Peter Lieven ha scritto: >> > The WRITE SAME command is implemented incorrectly. WRITE SAME with the >> > UNMAP bit set should _not_ unmap the sectors unless the written data >> > matches the payload of the WRITE SAME command; currently, QEMU is not >> > looking at the payload

Re: [Qemu-devel] [PATCH 06/11] scsi-disk: correctly implement WRITE SAME

2013-11-12 Thread Peter Lieven
Am 12.11.2013 um 16:49 schrieb Paolo Bonzini : > The WRITE SAME command is implemented incorrectly. WRITE SAME with the > UNMAP bit set should _not_ unmap the sectors unless the written data > matches the payload of the WRITE SAME command; currently, QEMU is not > looking at the payload at all.

[Qemu-devel] [PATCH 06/11] scsi-disk: correctly implement WRITE SAME

2013-11-12 Thread Paolo Bonzini
The WRITE SAME command is implemented incorrectly. WRITE SAME with the UNMAP bit set should _not_ unmap the sectors unless the written data matches the payload of the WRITE SAME command; currently, QEMU is not looking at the payload at all. Thus, fetch the data to be written from the input buffer