Skip to content

hbitmap: Add hbitmap_is_serializable()

Max Reitz qemu-devel 1 version Applied

Status from this message: Queued, thanks. I'll send a pull request before the holidays.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2hbitmap: Add hbitmap_is_serializable()include/qemu/hbitmap.h util/hbitmap.c+32 -30 replies
2/2test-hbitmap: Add hbitmap_is_serializable() callstests/test-hbitmap.c+11 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH for-2.9 0/2] hbitmap: Add hbitmap_is_serializable()

This series is a follow-up for "hbitmap: Fix shifts of constants by granularity".

So far, adding the assertion in hbitmap_serialization_granularity() (as done by said previous patch) is enough and we know that it will always hold true since bitmaps are only serialized as part of a test for now.

However, in the future we need some other way than a failed assertion to tell the user that they cannot serialize a certain bitmap. This series adds a function that can be called to tell whether a bitmap can be (de-)serialized.

Max Reitz (2):
hbitmap: Add hbitmap_is_serializable()
test-hbitmap: Add hbitmap_is_serializable() calls

 include/qemu/hbitmap.h | 13 +++++++++++++
 tests/test-hbitmap.c   | 11 +++++++++++
 util/hbitmap.c         | 22 +++++++++++++++++++---
 3 files changed, 43 insertions(+), 3 deletions(-)
Signature · 1 line
2.10.2