From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeASt-0004Bw-F2 for qemu-devel@nongnu.org; Wed, 06 Nov 2013 16:16:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeASo-0008IB-2h for qemu-devel@nongnu.org; Wed, 06 Nov 2013 16:16:39 -0500 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:45793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeASn-0008I4-SD for qemu-devel@nongnu.org; Wed, 06 Nov 2013 16:16:34 -0500 Received: by mail-ee0-f52.google.com with SMTP id e49so34585eek.25 for ; Wed, 06 Nov 2013 13:16:33 -0800 (PST) Sender: Paolo Bonzini Message-ID: <527AB1AB.5000404@redhat.com> Date: Wed, 06 Nov 2013 22:16:27 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1382609227-23989-1-git-send-email-pl@kamp.de> <20131106130840.GB9059@stefanha-thinkpad.redhat.com> <527A3F98.1060800@redhat.com> <2B1D10CE-E165-4393-94EB-6804C88BAFFC@kamp.de> In-Reply-To: <2B1D10CE-E165-4393-94EB-6804C88BAFFC@kamp.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCHv7 00/17] block: logical block provisioning enhancements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, Stefan Hajnoczi , stefanha@redhat.com, qemu-devel@nongnu.org, ronniesahlberg@gmail.com Il 06/11/2013 20:38, Peter Lieven ha scritto: > > Am 06.11.2013 um 14:09 schrieb Paolo Bonzini : > >> Il 06/11/2013 14:08, Stefan Hajnoczi ha scritto: >>> Thanks, applied to my block-next tree: >>> https://github.com/stefanha/qemu/commits/block-next >>> >>> This will go into QEMU 1.8. Since it's a new feature that touches core >>> block layer code and several block drivers, I can't merge it into >>> 1.7-rc. >> >> Yay! With these patches I can properly emulate WRITE SAME in the SCSI >> layer. > > Yes, you can, but only when write same is used to write zeroes. The other > case is still unhandled or needs emulation. WRITE SAME with UNMAP is incorrect in the current QEMU code. Your patch let me fix it so that the payload can be read back with no change, *and* sectors are unmapped when possible. Paolo