[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/20] add hierarchical bitmap data type and tes
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 02/20] add hierarchical bitmap data type and test cases |
Date: |
Thu, 13 Dec 2012 17:04:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 12/12/2012 06:46 AM, Paolo Bonzini wrote:
> HBitmaps provides an array of bits. The bits are stored as usual in an
> array of unsigned longs, but HBitmap is also optimized to provide fast
> iteration over set bits; going from one bit to the next is O(logB n)
> worst case, with B = sizeof(long) * CHAR_BIT: the result is low enough
> that the number of levels is in fact fixed.
>
>
> Reviewed-by: Laszlo Ersek <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hbitmap.c | 400 ++++++++++++++++++++++++++++++++++++++++++++++++++
> hbitmap.h | 207 ++++++++++++++++++++++++++
> tests/Makefile | 2 +
> tests/test-hbitmap.c | 408
> +++++++++++++++++++++++++++++++++++++++++++++++++++
> trace-events | 5 +
> 5 files changed, 1022 insertions(+)
> create mode 100644 hbitmap.c
> create mode 100644 hbitmap.h
> create mode 100644 tests/test-hbitmap.c
I've looked through this several times, but did another once-over, and
you can feel free to add:
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 00/20] Block device mirroring enhancements, 12-12-12 edition, Paolo Bonzini, 2012/12/12
- [Qemu-devel] [PATCH 02/20] add hierarchical bitmap data type and test cases, Paolo Bonzini, 2012/12/12
- Re: [Qemu-devel] [PATCH 02/20] add hierarchical bitmap data type and test cases,
Eric Blake <=
- [Qemu-devel] [PATCH 04/20] block: make round_to_clusters public, Paolo Bonzini, 2012/12/12
- [Qemu-devel] [PATCH 03/20] block: implement dirty bitmap using HBitmap, Paolo Bonzini, 2012/12/12
- [Qemu-devel] [PATCH 05/20] mirror: perform COW if the cluster size is bigger than the granularity, Paolo Bonzini, 2012/12/12
- [Qemu-devel] [PATCH 07/20] block: allow customizing the granularity of the dirty bitmap, Paolo Bonzini, 2012/12/12
- [Qemu-devel] [PATCH 06/20] block: return count of dirty sectors, not chunks, Paolo Bonzini, 2012/12/12