From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBvd8-00080r-Ta for qemu-devel@nongnu.org; Sat, 11 Jun 2016 23:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBvd7-0006c1-16 for qemu-devel@nongnu.org; Sat, 11 Jun 2016 23:00:05 -0400 Date: Sun, 12 Jun 2016 10:59:53 +0800 From: Fam Zheng Message-ID: <20160612025953.GE27167@ad.usersys.redhat.com> References: <1465574722-27656-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465574722-27656-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/6] block: bdrv_load/save_vmstate() cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, eblake@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Fri, 06/10 18:05, Kevin Wolf wrote: > This series contains a few cleanups with respect to the vmstate I/O functions. > Apart from making the interface more consistent (writes were already vectored, > but not reads), this makes use of the new byte-based .bdrv_co_preadv/pwritev > callbacks in qcow2 to get rid of a few hacks, including bs->zero_beyond_eof. Looks sane to me, Reviewed-by: Fam Zheng (Kevin, this is based on your "qcow2: Implement .bdrv_co_preadv/pwritev" series, right?) Fam > > Kevin Wolf (6): > block: Introduce bdrv_preadv() > block: Make .bdrv_load_vmstate() vectored > block: Allow .bdrv_load/save_vmstate() to return 0/-errno > block: Make bdrv_load/save_vmstate coroutine_fns > qcow2: Let vmstate call qcow2_co_preadv/pwrite directly > block: Remove bs->zero_beyond_eof > > block.c | 2 - > block/io.c | 173 +++++++++++++++++++++++++++++++--------------- > block/qcow2.c | 28 ++------ > block/sheepdog.c | 13 +++- > include/block/block.h | 2 + > include/block/block_int.h | 13 ++-- > 6 files changed, 143 insertions(+), 88 deletions(-) > > -- > 1.8.3.1 >