On 11/21/2016 09:29 AM, Vladimir Sementsov-Ogievskiy wrote: > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> > --- > block/dirty-bitmap.c | 5 +++++ > blockdev.c | 33 +++++++++++++++++++++++++++++++++ > include/block/dirty-bitmap.h | 2 ++ > include/qemu/hbitmap.h | 8 ++++++++ > qapi/block-core.json | 26 ++++++++++++++++++++++++++ > util/hbitmap.c | 11 +++++++++++ > 6 files changed, 85 insertions(+) >
> +++ b/qapi/block-core.json > @@ -1280,6 +1280,32 @@ > 'data': 'BlockDirtyBitmap' } > > ## > +# @BlockDirtyBitmapSha256: > +# > +# SHA256 hash of dirty bitmap data Maybe 'ASCII representation of SHA256 hash...' to make it clear that this is a longhand representation rather than a binary value that might include non-characters. > +# > +# @sha256: bitmap SHA256 hash > +# > +# Since: 2.8 2.9, probably > +## > + { 'struct': 'BlockDirtyBitmapSha256', > + 'data': {'sha256': 'str'} } > + > +## > +# @x-debug-block-dirty-bitmap-sha256 > +# > +# Get bitmap SHA256 > +# > +# Returns: BlockDirtyBitmapSha256 on success > +# If @node is not a valid block device, DeviceNotFound > +# If @name is not found, GenericError with an explanation > +# > +# Since 2.8 > +## and again > + { 'command': 'x-debug-block-dirty-bitmap-sha256', > + 'data': 'BlockDirtyBitmap', 'returns': 'BlockDirtyBitmapSha256' } > + -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature