Skip to contentSkip to conversation

Bitmaps patches

GIT PULL Applied John Snow 2 participants 3 messages Feb 7, 2018 – Feb 8, 2018

lore
Share & tools
lore

John Snow

author
#0 lore raw

The following changes since commit 0833df03f4206a6cf416fbb3d380fa95c8e61fba:

Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20180206a' into staging (2018-02-07 12:07:23 +0000)

are available in the Git repository at:

https://github.com/jnsnow/qemu.git tags/bitmaps-pull-request

for you to fetch changes up to 3260cdfffbf00f33923f5f9f6bef45932d7ac28b:

hbitmap: fix missing restore count when finish deserialization (2018-02-07 11:35:49 -0500)

----------------------------------------------------------------

----------------------------------------------------------------

Liang Li (1):
hbitmap: fix missing restore count when finish deserialization

 util/hbitmap.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.14.3
author
#1 lore raw

[Qemu-devel] [PULL 1/1] hbitmap: fix missing restore count when finish deserialization

From: Liang Li <[email protected]>

The .count of HBitmap is forgot to set in function hbitmap_deserialize_finish, let's set it to the right value.

Message-id: [email protected]

---
 util/hbitmap.c | 1 +
 1 file changed, 1 insertion(+)
util/hbitmap.c +1 -0
index 289778a55c..58a2c93842 100644
@@ -630,6 +630,7 @@ void hbitmap_deserialize_finish(HBitmap *bitmap)
     }
 
     bitmap->levels[0][0] |= 1UL << (BITS_PER_LONG - 1);
+    bitmap->count = hb_count_between(bitmap, 0, bitmap->size - 1);
 }
 
 void hbitmap_free(HBitmap *hb)
Signature · 1 line
2.14.3
#2 lore raw
In reply to John Snow
Quoted 16 lines · John Snow

The following changes since commit 0833df03f4206a6cf416fbb3d380fa95c8e61fba:

Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20180206a' into staging (2018-02-07 12:07:23 +0000)

are available in the Git repository at:

https://github.com/jnsnow/qemu.git tags/bitmaps-pull-request

for you to fetch changes up to 3260cdfffbf00f33923f5f9f6bef45932d7ac28b:

hbitmap: fix missing restore count when finish deserialization (2018-02-07 11:35:49 -0500)

----------------------------------------------------------------

----------------------------------------------------------------

Quoted 7 lines

Liang Li (1):
hbitmap: fix missing restore count when finish deserialization

 util/hbitmap.c | 1 +
 1 file changed, 1 insertion(+)

--

Applied, thanks.

-- PMM