Skip to contentSkip to conversation

bitmap: Update count after a merge

PATCH Eric Blake 2 participants 2 messages Nov 9, 2018 2 messages not in the archive

lore
Share & tools
lore

Eric Blake

author
#2 lore raw
In reply to a message not in the archive
Quoted 11 lines · John Snow
Quoted 6 lines · Eric Blake

We need an accurate count of the number of bits set in a bitmap after a merge. In particular, since the merge operation short-circuits a merge from an empty source, if you have bitmaps A, B, and C where B started empty, then merge C into B, and B into A, an inaccurate count meant that A did not get the contents of C.

Quoted 1 line

OK, tests coming up. Thanks for the CC to stable.

Did we ever add tests for this yet?

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#3 lore raw
Quoted 12 lines · Eric Blake
Quoted 11 lines · John Snow
Quoted 6 lines · Eric Blake

We need an accurate count of the number of bits set in a bitmap after a merge. In particular, since the merge operation short-circuits a merge from an empty source, if you have bitmaps A, B, and C where B started empty, then merge C into B, and B into A, an inaccurate count meant that A did not get the contents of C.

Quoted 4 lines
Quoted 1 line

OK, tests coming up. Thanks for the CC to stable.

Did we ever add tests for this yet?

Running behind. Not yet. On my list.