From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy0K3-0005BF-33 for qemu-devel@nongnu.org; Tue, 21 Sep 2010 06:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy0Jy-0002L8-2E for qemu-devel@nongnu.org; Tue, 21 Sep 2010 06:43:38 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:46355) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy0Jx-0002L4-V8 for qemu-devel@nongnu.org; Tue, 21 Sep 2010 06:43:34 -0400 Received: by vws19 with SMTP id 19so4542972vws.4 for ; Tue, 21 Sep 2010 03:43:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4C9883AC.2060308@redhat.com> References: <1284989493-13154-1-git-send-email-stefanha@linux.vnet.ibm.com> <4C9883AC.2060308@redhat.com> Date: Tue, 21 Sep 2010 11:43:33 +0100 Message-ID: Subject: Re: [Qemu-devel] Re: [PATCH] blkverify: Handle overlapping I/O vector buffers From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Stefan Hajnoczi , qemu-devel@nongnu.org On Tue, Sep 21, 2010 at 11:06 AM, Kevin Wolf wrote: > Am 20.09.2010 15:31, schrieb Stefan Hajnoczi: >> When blkverify clones an I/O vector in order to perform mirrored reads >> and then compare their contents, it does not take into account the >> layout of individual buffers. =A0It turns out this is important because >> guests may issue requests with overlapping buffers and the results >> differ depending on how buffers are overlapped. >> >> This patch introduces logic to honor overlap relationships when cloning >> I/O vectors. >> >> Signed-off-by: Stefan Hajnoczi > > Took me a while to review this. These buffer calculations always look so > harmless, but it's not trivial at all... Thanks for the review! I wasn't thrilled to add this logic either but I don't see a way around it. Will merge into blkverify so there is one unified patch including fixes for your review comments. Stefan