From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9shQ-0001iR-0Q for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9shK-0003aq-2c for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:14:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9shJ-0003aV-Ra for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:14:22 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7F8ELt7024171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Aug 2013 04:14:21 -0400 From: Fam Zheng Date: Thu, 15 Aug 2013 16:14:05 +0800 Message-Id: <1376554447-28638-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] block: allow commit active as top List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, jcody@redhat.com, stefanha@redhat.com, pbonzini@redhat.com Previously live commit of active block device is not supported, this series implements it and updates corresponding qemu-iotests cases. Please see commit messages for implementation details. v3: [addressing Stefan's comments] - Sleep in dirty map setup loop. - Handle error of bdrv_co_is_allocated_above(). - Fix order of dirty map reset and commit_populate(). - Use bdrv_co_flush(). - Put s->overlay check in one if block. - Don't interleave orig_overlay_flags and orig_base_flags saving stanzas. v2: report ready when all blocks commited for the first time, leave it to the user to complete the job (upon user's complete command, also commit writes since ready and flushes before reporting completion) Fam Zheng (2): block: allow live commit of active image qemu-iotests: update test cases for commit active block.c | 102 +++++++---------------- block/commit.c | 215 ++++++++++++++++++++++++++++++------------------- include/block/block.h | 5 +- tests/qemu-iotests/040 | 73 +++++++---------- 4 files changed, 195 insertions(+), 200 deletions(-) -- 1.8.3.1