From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6R9h-0003Xl-Qk for qemu-devel@nongnu.org; Tue, 28 Aug 2012 15:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6R9g-0001il-Sp for qemu-devel@nongnu.org; Tue, 28 Aug 2012 15:08:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6R9g-0001ih-LI for qemu-devel@nongnu.org; Tue, 28 Aug 2012 15:08:52 -0400 Message-ID: <503D173F.5010802@redhat.com> Date: Tue, 28 Aug 2012 21:08:47 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1346164009-30648-1-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1346164009-30648-1-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 for-1.2 0/2] stream: complete early if end of backing file is reached List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org Am 28.08.2012 16:26, schrieb Stefan Hajnoczi: > Image streaming hangs if the backing image is smaller than the image file. The > problem is that the image streaming loop makes no progress when > bdrv_co_is_allocated() returns 0 with pnum=0. More details in the actual > patch. > > I have also included a qemu-iotest to check this scenario. It hangs when run > against qemu.git/master and passes when the patch is applied. > > Stefan Hajnoczi (2): > stream: complete early if end of backing file is reached > qemu-iotests: add backing file smaller than image test case > > block/stream.c | 6 ++++++ > tests/qemu-iotests/030 | 33 +++++++++++++++++++++++++++++++++ > tests/qemu-iotests/030.out | 4 ++-- > 3 files changed, 41 insertions(+), 2 deletions(-) > Thanks, applied all to the block branch. Kevin