diff options
| author | Peter Xu | 2019-06-03 08:50:49 +0200 |
|---|---|---|
| committer | Juan Quintela | 2019-07-15 15:39:02 +0200 |
| commit | ad37f24d57a81020ceba4c966563b1ad7c7199e3 (patch) | |
| tree | cff449c3ba7c7d77788ba137f7be8a2264ef495d /include/exec | |
| parent | memory: Don't set migration bitmap when without migration (diff) | |
| download | qemu-ad37f24d57a81020ceba4c966563b1ad7c7199e3.tar.gz qemu-ad37f24d57a81020ceba4c966563b1ad7c7199e3.tar.xz qemu-ad37f24d57a81020ceba4c966563b1ad7c7199e3.zip | |
bitmap: Add bitmap_copy_with_{src|dst}_offset()
These helpers copy the source bitmap to destination bitmap with a
shift either on the src or dst bitmap.
Meanwhile, we never have bitmap tests but we should.
This patch also introduces the initial test cases for utils/bitmap.c
but it only tests the newly introduced functions.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20190603065056.25211-5-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Bitmap test used sizeof(unsigned long) instead of BITS_PER_LONG.
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
