[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [RFC PATCH 09/12] qapi/block-core: add BitmapMapping and Bi
From: |
John Snow |
Subject: |
[Qemu-block] [RFC PATCH 09/12] qapi/block-core: add BitmapMapping and BitmapEntry structs |
Date: |
Fri, 11 May 2018 21:25:34 -0400 |
Add two new structures for detailing the marked regions of bitmaps as
saved in e.g. qcow2 files.
Signed-off-by: John Snow <address@hidden>
---
qapi/block-core.json | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 8f33f41ce7..de8ad73a78 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -298,6 +298,38 @@
'zero': 'bool', 'depth': 'int', '*offset': 'int',
'*filename': 'str' } }
+##
+# @BitmapEntry:
+#
+# Dirty Bitmap region information for a virtual block range
+#
+# @offset: the start byte of the dirty virtual range
+#
+# @length: the number of bytes of the dirty virtual range
+#
+# Since: 2.13
+#
+##
+{ 'struct': 'BitmapEntry',
+ 'data': { 'offset': 'int', 'length': 'int' } }
+
+##
+# @BitmapMapping:
+#
+# List of described regions correlated to a named bitmap.
+#
+# @name: The name of the bitmap whose range is described here
+#
+# @entries: A list of zero or more @BitmapEntry elements representing
+# the range(s) described by the bitmap.
+#
+# Since: 2.13
+#
+##
+{ 'struct': 'BitmapMapping',
+ 'data': { 'name': 'str',
+ 'entries': [ 'BitmapEntry' ] } }
+
##
# @BlockdevCacheInfo:
#
--
2.14.3
- Re: [Qemu-block] [Qemu-devel] [RFC PATCH 03/12] block/qcow2-bitmap: avoid adjusting bm->flags for RO bitmaps, (continued)
- [Qemu-block] [RFC PATCH 09/12] qapi/block-core: add BitmapMapping and BitmapEntry structs,
John Snow <=
- [Qemu-block] [RFC PATCH 10/12] qemu-img: split off common chunk of map command, John Snow, 2018/05/11
- [Qemu-block] [RFC PATCH 11/12] qemu-img: add bitmap dump, John Snow, 2018/05/11
- [Qemu-block] [RFC PATCH 12/12] qemu-img: add bitmap clear, John Snow, 2018/05/11
- Re: [Qemu-block] [Qemu-devel] [RFC PATCH 00/12] qemu-img: add bitmap queries, no-reply, 2018/05/11
- Re: [Qemu-block] [RFC PATCH 00/12] qemu-img: add bitmap queries, Vladimir Sementsov-Ogievskiy, 2018/05/14