From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz9zi-0004Oh-PQ for qemu-devel@nongnu.org; Thu, 01 Sep 2011 12:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz9zi-00078B-27 for qemu-devel@nongnu.org; Thu, 01 Sep 2011 12:19:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz9zh-00077J-RM for qemu-devel@nongnu.org; Thu, 01 Sep 2011 12:19:58 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p81GJuge027994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Sep 2011 12:19:56 -0400 Date: Thu, 1 Sep 2011 13:19:54 -0300 From: Luiz Capitulino Message-ID: <20110901131954.25e81235@doriath> In-Reply-To: <1314887471-18052-1-git-send-email-kwolf@redhat.com> References: <1314887471-18052-1-git-send-email-kwolf@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] qcow2/coroutine fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On Thu, 1 Sep 2011 16:31:08 +0200 Kevin Wolf wrote: > This fixes a couple of issues with the coroutine-based block layer regarding > error handling. > > Luiz, can you please try if this fixes your bug? It fixes the reported bug, but it seems that there's another issue. I'll copy & paste the test case here for our convenience: 1. Create a 100MB logical volume and create a 200MB qcow2 image on it 2. Run qemu with the following command-line: # qemu -drive file=disks/test.img,if=virtio,cache=writeback,aio=native \ -drive file=/dev/vg_doriath/kvmtest,if=virtio -enable-kvm -m 1G \ -monitor stdio -netdev type=tap,id=guest0,script=qemu-ifup-switch \ -device virtio-net-pci,netdev=guest0 -cpu host 3. Log into the guest and run dd to write 150MB on /dev/vdb 4. The VM will stop 5. Assign extra space to the logical volume, say 200MB 6. Type 'cont' in the monitor If I assign chunks of 50MB each time the VM stop in steps 4 and 5, I have to do it several times (totalizing a logical volume size of 400MB), so that dd is able to finish. Testing with commit b96e92470 works as expected, I extend the lv twice with 50MB (totalizing 200MB) and dd finishes normally. Small note: I'm writing 157MB in step 3.