Received: from eggs.gnu.org ([2001:4830:134:3::10]:47974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQtBa-0000jR-4t for qemu-devel@nongnu.org; Mon, 08 Sep 2014 03:16:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQtBT-0000vL-S4 for qemu-devel@nongnu.org; Mon, 08 Sep 2014 03:16:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQtBT-0000vB-LJ for qemu-devel@nongnu.org; Mon, 08 Sep 2014 03:16:19 -0400 From: Markus Armbruster References: <20140830145313.GN14001@redhat.com> <20140905153951.GJ27649@stefanha-thinkpad.redhat.com> <20140905174137.GI1302@redhat.com> Date: Mon, 08 Sep 2014 09:16:15 +0200 In-Reply-To: <20140905174137.GI1302@redhat.com> (Richard W. M. Jones's message of "Fri, 5 Sep 2014 18:41:37 +0100") Message-ID: <87lhpu1t1c.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: kwolf@redhat.com, Stefan Hajnoczi , qemu-devel@nongnu.org, Max Reitz "Richard W.M. Jones" writes: > On Fri, Sep 05, 2014 at 04:39:51PM +0100, Stefan Hajnoczi wrote: >> Did you try older QEMU versions? I'm curious if this is something that >> crept in later or is fundamentally broken in lazy_refcounts=on. > > At your prompting, I've done a bit more investigation. > > I was basing my observations on qemu 2.1.0. However I tried my test > against qemu from git today and the bug has gone. Good! > > For my entertainment, I bisected the problem, and the commit which > *fixes* it is: > > commit 91af7014125895cc74141be6b60f3a3e882ed743 > Author: Max Reitz > Date: Fri Jul 18 20:24:56 2014 +0200 > > block: Add bdrv_refresh_filename() > > I didn't believe this either, but I have checked the result manually > and I'm pretty sure that whatever this commit does, it does end up > fixing the lazy_refcounts problem as a side-effect. Weird. Maybe Max (cc'ed) has an idea. > ---------------------------------------------------------------------- > > I've updated the test script (attached), so you can now run it against > your own qemu, and also to improve the output.