bitmap: Update count after a merge
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
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.