From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdxRy-000840-3Y for qemu-devel@nongnu.org; Tue, 05 Jul 2011 00:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdxRx-0000Ry-3m for qemu-devel@nongnu.org; Tue, 05 Jul 2011 00:41:30 -0400 Received: from mail-yi0-f45.google.com ([209.85.218.45]:50456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdxRw-0000Qq-FT for qemu-devel@nongnu.org; Tue, 05 Jul 2011 00:41:28 -0400 Received: by yia25 with SMTP id 25so2624219yia.4 for ; Mon, 04 Jul 2011 21:41:27 -0700 (PDT) From: Devin Nakamura Date: Tue, 5 Jul 2011 00:41:20 -0400 Message-Id: <1309840884-32409-1-git-send-email-devin122@gmail.com> Subject: [Qemu-devel] [PATCH 1/5] block_int: add basic conversion api List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org add functions to block driver interface to support inplace image conversion Signed-off-by: Devin Nakamura --- block_int.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/block_int.h b/block_int.h index 1e265d2..ef311c7 100644 --- a/block_int.h +++ b/block_int.h @@ -136,6 +136,16 @@ struct BlockDriver { * zeros, 0 otherwise. */ int (*bdrv_has_zero_init)(BlockDriverState *bs); + + /* Image conversion stuff */ + int (*bdrv_open_conversion_target)(BlockDriverState *bs, char *filename, + QEMUOptionParameter *options); + int (*bdrv_get_mapping)(BlockDriverState *bs, uint64_t *guest_offset, + uint64_t *host_offset, uint64_t *contiguous_bytes); + int (*bdrv_map)(BlockDriverState *bs, uint64_t *guest_offset, + uint64_t *host_offset, uint64_t *contiguous_bytes); + int (*bdrv_copy_header) (BlockDriverState *bs); + QLIST_ENTRY(BlockDriver) list; }; -- 1.7.6.rc1