qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/5] block_int: add basic conversion api


From: Devin Nakamura
Subject: [Qemu-devel] [PATCH 1/5] block_int: add basic conversion api
Date: Tue, 5 Jul 2011 00:41:20 -0400

add functions to block driver interface to support inplace image conversion

Signed-off-by: Devin Nakamura <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]